Magnetic flux, offset charges#

All external magnetic fluxes and offset charges are set to zero by default. They are modified by assigning the desired values to the attributes of the class instance.

Each offset charge \(n_{gi}\) is associated with a variable \(\theta_i\). Only periodic variables have offset charges relevant to the physics. For extended variables, offset charges (as long as time-independent) can always be eliminated from the Hamiltonian by suitable gauge transformations. A list of adjustable offset charge-parameters and their relation to the node offset charges \(\{q_{g\mu}\}\) is provided by:

[21]:
zero_pi.offset_charge_transformation()
[21]:
$\displaystyle \left[ n_{g1} = 1.0 q_{g3} + 1.0 q_{g4} - 1.0 q_{g2}\right]$

Each external flux \(\Phi_i\) is associated with a branch in a closed loop of circuit. All the external fluxes, along with their associated closure branches and loop (provided as a list of branches), can be accessed via:

[22]:
zero_pi.sym_external_fluxes()
[22]:
{Φ1: (Branch(JJ, 3, 4, id_str: 1),
  [Branch(L, 2, 3, id_str: 2),
   Branch(JJ, 1, 2, id_str: 0),
   Branch(L, 4, 1, id_str: 3),
   Branch(JJ, 3, 4, id_str: 1)])}

External fluxes (in unit of \(2\pi\)) and offset charges can be adjusted via:

[23]:
zero_pi.Φ1 = 0.5
zero_pi.ng1 = 0.6