Interaction
- class Interaction(spin1, spin2, tensor=None)
Represent an interaction between two spins. By appropriately setting the tensor components, this class can model various types of spin interactions, such as:
The hyperfine interaction between an electron and a nuclear spin.
The dipole-dipole interaction between two nuclear spins.
Initialize an interaction.
- Parameters:
Hint
Interaction tensor can be set at initialization:
interaction = Interaction(spin1, spin2, tensor=[[0,0,0.003],[0,0,0],[0.003,0,0.213154]])
Or coefficients can be set one-by-one:
interaction = Interaction(spin1, spin2) interaction.zz = 0.213154 interaction.xz = 0.003 interaction.zx = 0.003
Attributes
First spin.
Second spin.
Full tensor representing the interaction.
The \(xx\) components of the interaction.
The \(xy\) components of the interaction.
The \(xz\) components of the interaction.
The \(yx\) components of the interaction.
The \(yy\) components of the interaction.
The \(yz\) components of the interaction.
The \(zx\) components of the interaction.
The \(zy\) components of the interaction.
The \(zz\) components of the interaction.