grogupy.physics.spin_tracer
- grogupy.physics.spin_tracer(M: ndarray[Any, dtype[_ScalarType_co]]) dict[source]
Extracts orbital dependent Pauli traces.
This takes an operator with the orbital-spin sequence: orbital 1 up, orbital 1 down, orbital 2 up, orbital 2 down, that is in the SPIN-BOX representation, and extracts orbital dependent Pauli traces.
Parameters
- M: NDArray
Traceable matrix in SPIN BOX represenation
Returns
- dict
It contains the traced matrix with “x”, “y”, “z” and “c”, where “c” is the constant part