operator

Spin.operator: Components1D

Spin operator.

Tip

The components (x, y or z) of the spin operator are available, for example, by:

>>> spin.operator.x
array([[0.     +0.j, 0.70711+0.j, 0.     +0.j],
       [0.70711+0.j, 0.     +0.j, 0.70711+0.j],
       [0.     +0.j, 0.70711+0.j, 0.     +0.j]])

The identity operator is also stored:

>>> spin.operator.i
array([[1.+0.j, 0.+0.j, 0.+0.j],
       [0.+0.j, 1.+0.j, 0.+0.j],
       [0.+0.j, 0.+0.j, 1.+0.j]])