qimpy.transport.material.ab_initio.EMField

class EMField(*, ab_initio, grad_phi=(0.0, 0.0, 0.0), checkpoint_in=(None, ''))

Bases: TreeNode

Magnetic field pulse to rotate spins by specific angles.

Parameters:
__init__(*, ab_initio, grad_phi=(0.0, 0.0, 0.0), checkpoint_in=(None, ''))

Initialize EM field interaction.

Parameters:
Return type:

None

Methods

__init__

Initialize EM field interaction.

add_child

Construct child object self.`attr_name` of type cls.

add_child_one_of

Invoke add_child on one of several child options in args.

initialize_fields

rho_dot

save_checkpoint

Save self and all children in hierarchy to cp_path.

Attributes

ab_initio

constant_params

constant values of parameters

grad_phi

Electric field strength

child_names

Names of attributes with child objects.

variant_name

Version of children having variants (if any)

constant_params: dict[str, Tensor]

constant values of parameters

grad_phi: dict[int, Tensor]

Electric field strength