mindchemistry.e3.o3.su2_generators

View Source On Gitee
mindchemistry.e3.o3.su2_generators(j, dtype=complex64)[source]

Compute the su(2) Lie algebra generators.

Parameters
  • j (int) – degree of generators.

  • dtype (dtype) – {complex64, complex128} data type of generators. Default: complex64.

Returns

Tensor, su(2) generators with the dtype is dtype.

Raises

TypeError – If j is not int.

Supported Platforms:

Ascend

Examples

>>> 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        ]]]