mindchemistry.e3.o3.su2_generators
- mindchemistry.e3.o3.su2_generators(j, dtype=complex64)[源代码]
计算su(2)李代数生成元。
- 参数:
j (int) - 生成维度。
dtype (dtype) - {complex64,complex128}生成器的数据类型。默认值:
complex64
。
- 返回:
output (Tensor) - 张量,计算su(2)李代数生成元结果,类型为dtype。
- 异常:
TypeError - 如果 j 不是整型。
- 支持平台:
Ascend
样例:
>>> from mindchemistry.e3.o3 import su2_generators >>> m = su2_generators(1) >>> print(m) [[[ 0. +0.j 0.70710677+0.j 0. +0.j ] [-0.70710677+0.j 0. +0.j 0.70710677+0.j ] [ 0. +0.j -0.70710677+0.j 0. +0.j ]] [[-0. -1.j 0. +0.j 0. +0.j ] [ 0. +0.j 0. +0.j 0. +0.j ] [ 0. +0.j 0. +0.j 0. +1.j ]] [[ 0. -0.j 0. +0.70710677j 0. -0.j ] [ 0. +0.70710677j 0. -0.j 0. +0.70710677j] [ 0. -0.j 0. +0.70710677j 0. -0.j ]]]