mindchemistry.e3.o3.change_basis_real_to_complex
- mindchemistry.e3.o3.change_basis_real_to_complex(l, dtype=float32)[源代码]
转换球谐函数实基为复基。
- 参数:
l (int) - 球谐函数的阶数。
dtype (dtype) - {float32, float64} 实基的数据类型。默认:float32。
- 返回:
output (Tensor) - 复基,数据类型为 complex64(当 dtype =float32 时)和 complex128(当 dtype =float64 时)。
- 支持平台:
Ascend
样例:
>>> from mindchemistry.e3.o3 import change_basis_real_to_complex >>> m = change_basis_real_to_complex(1) >>> print(m) [[-0.70710677+0.j 0. +0.j 0. -0.70710677j] [ 0. +0.j 0. -1.j 0. +0.j ] [-0.70710677+0.j 0. +0.j 0. +0.70710677j]]