StaticField
- class StaticField(strengths=None, target_spins=None)
Represent a static magnetic field.
Initialize the static magnetic field.
- Parameters:
Hint
Strengths of the components can be set at initialization:
static_field = StaticField([0, 0.001, 0.01])
Or it can be set after initialization:
static_field = StaticField() static_field.vec = [0, 0.001, 0.01]
Or components can be set one-by-one:
static_field = StaticField() static_field.y = 0.001 static_field.z = 0.01
Methods
Normalize the vector to unit length.
Attributes
Names of the spins affected by the field, or
Nonefor all spins.Vector corresponding the static magnetic field.
The \(x\) components of the static magnetic field.
The \(y\) components of the static magnetic field.
The \(z\) components of the static magnetic field.