BaseSpin
- class BaseSpin(dimension, name, qubit_subspace, gyromagnetic_ratio, *, axial_splitting=0.0, transverse_splitting=0.0, anisotropy_axis=None, local_quasistatic_noise=None, quantization_axis='global_z')
Base functionality shared by electron and nuclear spins.
Note
In most user code, prefer
ElectronSpinorNuclearSpininstead of instantiatingBaseSpindirectly.- 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}\)).axial_splitting (
float) – Axial anisotropy 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.
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.
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.