NuclearSpin
- class NuclearSpin(dimension, name, qubit_subspace, gyromagnetic_ratio, quadrupole_splitting=0.0, anisotropy_axis=None, local_quasistatic_noise=None, quantization_axis='global_z')
Spin representation tailored for nuclear spins.
- Parameters:
dimension (
int) – Dimension, must be 2 for spin-1/2, 3 for spin-1, etc.name (
str) – Name of the spin.qubit_subspace (
Tuple[float,float]) – The quantum numbers that define the qubit subspace.gyromagnetic_ratio (
float) – Gyromagnetic ratio (in \(\text{MHz}/\text{T}\)).quadrupole_splitting (
float) – Quadrupole splitting parameter (in \(\text{MHz}\)).anisotropy_axis (
List[float] |None) – Local anisotropy axis of the spin, given in the global coordinate system.local_quasistatic_noise (
List[float] |None) – Local-quasistatic noise components of the spin (in \(\text{MHz}\)).quantization_axis (
str|Sequence[float]) – Quantization axis of the spin, given by the keyword'global_z','local_static_field', or'anisotropy_axis', or by an explicit vector in the global coordinate system. It determines which direction is treated as the spin’s local z-axis when building operators and states for that spin.
- Raises:
SimphonyError – If an invalid dimension or qubit subspace is provided.
Note
Hamiltonian of the nuclear spin reads
\[H_n = -\gamma_n \mathbf{B} \cdot \mathbf{I} + Q \left( I_{z'}^2-\frac{I(I+1)}{3} \right),\]where \(\gamma_n\) is the
gyromagnetic_ratio, \(Q\) isquadrupole_splitting. The quadrupole term is written in the principal axis frame \((x',y',z'),\) that is defined by theanisotropy_axis.Attributes
Local anisotropy axis of the spin, given in the global coordinate system.
Anisotropy tensor in the global coordinate system (in \(\text{MHz}\)).
Dimension, it is 2 for spin-1/2, 3 for spin-1, etc.
Gyromagnetic ratio (in \(\text{MHz}/\text{T}\)).
Local quasistatic noise components.
Name of the spin.
Spin operator.
Pauli operators defined on the qubit subspace.
Quadrupole splitting parameter (in \(\text{MHz}\)).
Quantization axis of the spin.
Quantum numbers corresponding to spin operator.
Qubit subspace that is defined by a two-length subset of the
quantum_nums.Rotating frame frequency (in \(\text{MHz}\)).
Virtual z-phase of the spin.
Sign of the Zeeman term.