operator_qubit_subspace
-
Spin.operator_qubit_subspace:
Components1D
Pauli operators defined on the qubit subspace.
Tip
The components (
x
,y
orz
) are available, for example, by:>>> spin.operator_qubit_subspace.z array([[ 0.+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]])
The identity operator is also stored:
>>> spin.operator_qubit_subspace.i array([[0.+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]])