qimpy.transport.material.ab_initio.EMField
- class EMField(*, ab_initio, grad_phi=(0.0, 0.0, 0.0), checkpoint_in=(None, ''))
Bases:
TreeNodeMagnetic field pulse to rotate spins by specific angles.
- Parameters:
ab_initio (AbInitio)
grad_phi (dict[int, Tensor])
checkpoint_in (CheckpointPath)
- __init__(*, ab_initio, grad_phi=(0.0, 0.0, 0.0), checkpoint_in=(None, ''))
Initialize EM field interaction.
- Parameters:
grad_phi (Tensor | ndarray | float | Sequence[float]) – [Input file] Scalar potential.
ab_initio (AbInitio)
checkpoint_in (CheckpointPath)
- Return type:
None
Methods
Initialize EM field interaction.
add_childConstruct child object self.`attr_name` of type cls.
add_child_one_ofInvoke add_child on one of several child options in args.
initialize_fieldsrho_dotsave_checkpointSave self and all children in hierarchy to cp_path.
Attributes
ab_initioconstant values of parameters
Electric field strength
child_namesNames of attributes with child objects.
variant_nameVersion of children having variants (if any)
- constant_params: dict[str, Tensor]
constant values of parameters
- grad_phi: dict[int, Tensor]
Electric field strength