Magnetic Fields
On this page
A magnetic field enters a tight-binding model through the phases of its hoppings. caroli takes any vector potential as a Peierls phase, and gives the uniform field \(B\hat z\) in three gauges. Transport needs more than a phase: every lead must repeat from cell to cell, which no single gauge allows when leads point in several directions. Model::with_field handles this case by changing the gauge of each lead, as Kwant's magnetic_gauge does. This page gives the conventions, the formulas of the gauges and of the gauge changes, the checks the transport constructors make, and the tests that show the results do not depend on the gauge.
Peierls phases
In a field, the momentum \(\mathbf p\) of an electron becomes \(\mathbf p - e\mathbf A\). On a lattice, Peierls's substitution multiplies each hopping by the phase the vector potential accumulates along the bond. With \(\hbar = e = 1\) (the charge is absorbed in \(\mathbf A\), as in the conventions), the block \(\langle i \rvert H \lvert j \rangle\) becomes
$$ H_{ij} \to H_{ij}\, e^{i \phi(\mathbf r_i, \mathbf r_j)} , \qquad \phi(\mathbf r_i, \mathbf r_j) = \int_{\mathbf r_j}^{\mathbf r_i} \mathbf A \cdot d\mathbf l , $$
the integral taken along the straight bond from \(\mathbf r_j\) to \(\mathbf r_i\). The phase must be antisymmetric, \(\phi(\mathbf r_j, \mathbf r_i) = -\phi(\mathbf r_i, \mathbf r_j)\), for the Hamiltonian to stay Hermitian. Around a closed loop of bonds the phases add up to the flux through it, \(\oint \mathbf A \cdot d\mathbf l = \int \mathbf B \cdot d\mathbf S\), whatever the gauge.
Model::with_peierls(φ) takes the phase as a function of the two positions, \(\phi(\mathbf r_i, \mathbf r_j)\) for the block \(\langle i \rvert H \lvert j \rangle\), and replaces any phase set before. It multiplies every block after the site-dependent hopping terms. Any field can be written this way: a uniform field, a flux tube through a ring, a field confined to part of the sample. A hopping term can carry the same phase by hand, with the same result (Tight-Binding Models).
A gauge change \(\mathbf A \to \mathbf A + \nabla \chi\) adds \(\chi(\mathbf r_i) - \chi(\mathbf r_j)\) to the phase of the bond, which is the unitary transformation
$$ H \to U H U^{\dagger} , \qquad U = \mathrm{diag}\big(e^{i \chi(\mathbf r_i)}\big) . $$
Spectra, transmissions, densities, local densities of states and bond currents \(j_{i \to j} = 2\, \mathrm{Re}\, \mathrm{Tr}\, [H_{ij} G^{\lt}_{ji}]\) do not change; wave functions and the phases of the scattering amplitudes do.
Uniform fields and their gauges
A uniform field \(B \hat z\) is given by \(b\), the phase per unit area in units of \(\hbar/(e a^2)\), \(a\) the length unit of the lattice: the phase around a loop is \(b\) times the area it encloses, counterclockwise, and the flux quantum \(h/e\) is \(2\pi\). On the square lattice of constant 1, \(b\) is the flux through a plaquette and \(b/2\pi\) its number of flux quanta. In physical units,
$$ B = b\, \frac{\hbar}{e a^2} , \qquad \frac{\hbar}{e a^2} = 658\ \mathrm{T} \times \Big(\frac{1\ \mathrm{nm}}{a}\Big)^2 , $$
so \(b = 1\) is 26.3 T on the lattice of the BHZ preset (\(a = 5\) nm). The magnetic length is \(\ell_B = 1/\sqrt b\) in units of \(a\).
caroli_model::gauge gives three gauges of the same field. Their vector potentials are linear in \(\mathbf r\), so the straight-line integral is exact with the midpoint \(\bar{\mathbf r} = (\mathbf r_i + \mathbf r_j)/2\): \(\phi = \mathbf A(\bar{\mathbf r}) \cdot (\mathbf r_i - \mathbf r_j)\).
| Function | Vector potential | Phase of \(\langle i \rvert H \lvert j \rangle\) | Invariant along |
|---|---|---|---|
landau_x(b) | \(\mathbf A = (-b y, 0, 0)\) | \(-b\, \bar y\, (x_i - x_j)\) | \(x\) (and \(z\)) |
landau_y(b) | \(\mathbf A = (0, b x, 0)\) | \(b\, \bar x\, (y_i - y_j)\) | \(y\) (and \(z\)) |
symmetric(b) | \(\mathbf A = b\, (-y, x, 0)/2\) | \(\tfrac{b}{2} \big(-\bar y\, (x_i - x_j) + \bar x\, (y_i - y_j)\big)\) | No direction |
On a 3D lattice the field is along \(z\); only the in-plane components of the positions enter.
Model::with_field(b) sets the phase of landau_x(b) and records \(b\): the record tells the transport constructors that the field is uniform, so that they may change the gauge of each lead (next section). with_peierls erases the record. The device and the lead models of a transport calculation must carry the same field, or the constructors panic.
Leads along any direction
A lead is a semi-infinite periodic wire: its cell Hamiltonian \(h_{00}\) and its coupling \(h_{01}\) must be the same in every cell, or its modes are not defined (Lead Modes and Self-Energies). In a field, the Peierls phases of the lead repeat from cell to cell only if the vector potential is invariant along the lead: landau_x is invariant along \(x\), but along \(y\) it changes by \(-b\, \Delta y\, \hat x\) from one cell to the next. A Hall bar, a cross, a lead attached to a side of a ribbon: as soon as two leads point in different directions, no single Landau gauge suits them all.
The Landau gauge invariant along an in-plane unit vector \(\hat{\mathbf d}\) is
$$ \mathbf A_{\mathbf d}(\mathbf r) = -b\, (\mathbf r \cdot \hat{\mathbf n})\, \hat{\mathbf d} , \qquad \hat{\mathbf n} = \hat z \times \hat{\mathbf d} = (-d_y, d_x, 0) . $$
It depends on \(\mathbf r\) only through \(\mathbf r \cdot \hat{\mathbf n}\), so a translation along \(\hat{\mathbf d}\) leaves it unchanged, and its curl is \(b \hat z\). It reduces to landau_x for \(\hat{\mathbf d} = \hat x\) and to landau_y for \(\hat{\mathbf d} = \hat y\). It differs from landau_x by a gradient, \(\mathbf A_{\mathbf d} = \mathbf A_x + \nabla \chi_{\mathbf d}\), with
$$ \nabla \chi_{\mathbf d} = b \begin{pmatrix} d_x d_y & d_y^2 \\ d_y^2 & -d_x d_y \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} , \qquad \chi_{\mathbf d}(\mathbf r) = \frac{b}{2} \big( d_x d_y\, x^2 + 2 d_y^2\, x y - d_x d_y\, y^2 \big) . $$
The matrix is symmetric, which is why the difference is a gradient. For a lead along \(y\), \(\chi = b x y\). gauge::landau_x_to_along(b, d) returns \(\chi_{\mathbf d}\). In the new gauge the block \(\langle i \rvert H \lvert j \rangle\) is multiplied by \(e^{i (\chi(\mathbf r_i) - \chi(\mathbf r_j))}\). Since the straight-line integral of a gradient is the difference of its values, the transformed phases are exactly those of \(\mathbf A_{\mathbf d}\): the change of gauge involves no approximation.
The transport constructors use it whenever the model was built with with_field. The direction \(\hat{\mathbf d}\) of a lead is its step from one cell to the next (in cells, converted to a Cartesian vector by the primitive vectors) normalised in the plane:
- Two terminals (
TwoTerminal::from_model,NestedTwoTerminal::from_model): the whole system, the device and both leads, is taken to the gauge invariant along the transport axis. The Green's function of the device is that of the gaugelandau_xconjugated by the diagonal unitary \(U\), and the transmissions are the same. - Many terminals (
MultiTerminal::from_model,NestedMultiTerminal::from_model): the device keeps the gaugelandau_x, and each lead is taken to the gauge invariant along its outward step. Its \(h_{00}\) and \(h_{01}\) are those of the new gauge, periodic, so that its modes and its surface Green's function \(g'\) can be computed. The coupling to the device is mixed, its rows in the gauge of the device and its columns in that of the lead, \(V' = V U^{\dagger}\). The self-energy on the device is then the one of the lead seen in the device's gauge,
$$ \Sigma = V' g' V'^{\dagger} = V U^{\dagger}\, (U g U^{\dagger})\, U V^{\dagger} = V g V^{\dagger} , $$
where \(g\) is the surface Green's function the lead would have in the device's gauge, if it could be computed there.
With with_peierls, whatever the phase, no gauge is changed: each lead must already see a phase invariant along it, such as landau_x for leads along \(x\) and landau_y for leads along \(y\).
The gauge of a lead depends on the in-plane components of its step only. A lead along \(z\), parallel to the field, has none: the gauge along \(x\) does not depend on \(z\), so it is kept (\(\chi = 0\)), and the transmission is that of with_peierls(gauge::landau_x(b)) (test leads_along_the_field).
The check that a lead repeats
Every transport constructor checks that each lead is the same from cell to cell in the gauge it uses. It builds \(h_{00}\) and \(h_{01}\) for the first cell of the lead and for the next cell along it, and panics unless they agree within \(10^{-12}\) of the largest entry of \(h_{00}\) and \(h_{01}\), with the message "the lead model changes along the lead: use Model::with_field for a uniform field, or a gauge invariant along the lead, and no potential that varies along it". The check catches a gauge that is not invariant along the lead (landau_y with leads along \(x\)), and a potential, a disorder or a hopping term of the lead model that varies along it.
The same holds in a periodic direction of a supercell. The Bloch Hamiltonian takes the Peierls phase of every bond at the true positions of its two ends, the image across the boundary included, and applies no gauge change there (Periodic supercells). With landau_x, a supercell periodic along \(x\) is consistent. Along \(y\) it is not in general: on a square lattice repeated every \(L\) rows, the plaquettes that straddle the boundary enclose the phase \(-b(L - 1)\) instead of \(b\), the same only when \(bL\) is a multiple of \(2\pi\).
Landau levels of the square lattice
Near the bottom of its band, the square lattice with the hopping \(-t\) has the dispersion \(E(\mathbf k) = -2t (\cos k_x + \cos k_y) \approx -4t + t k^2\), an effective mass \(m^{\ast} = 1/(2t)\) in units of \(\hbar^2/a^2\). In the field \(b\) the cyclotron frequency is \(\omega_c = b/m^{\ast} = 2tb\), and the Landau levels are
$$ E_n \approx -4t + (2n + 1)\, t b - \frac{t b^2}{8}\, (2n^2 + 2n + 1) , $$
each holding \(b/2\pi\) states per unit area, one per flux quantum. The first two terms are those of a free electron of mass \(m^{\ast}\); the third is the first-order correction from the quartic term of the band, \(-t(k_x^4 + k_y^4)/12\), averaged over the oscillator state \(n\). For \(b = 0.1\) (\(\ell_B = 3.16\)), the lattice levels obtained by diagonalising Harper's equation of a wide ribbon are \(-3.901\), \(-3.706\), \(-3.516\) and \(-3.331\), against \(-3.9\), \(-3.7\), \(-3.5\), \(-3.3\) from the first two terms. The formula holds while \(\ell_B \gg a\) and \(n\) stays small. At larger fluxes the levels turn into Hofstadter's spectrum, periodic in \(b\) with the period \(2\pi\) on this lattice.
In a ribbon much wider than \(\ell_B\), the bulk has no states between two levels, and each level below the Fermi energy gives one chiral channel along each edge, the two edges carrying opposite directions. The transmission between the two ends is the number \(\nu\) of filled levels, and weak disorder does not change it: a backscattered electron would have to cross the sample to the other edge. In a multi-terminal device, the edge channels carry \(\nu\) from each lead to the next one around the sample, and the Landauer–Büttiker equations give the Hall resistance \(h/(\nu e^2)\) and no longitudinal resistance. The tests below check the three: the plateaus of a ribbon, the chirality of a cross and the resistances of a Hall bar.
Onsager's relations
Reversing the field conjugates the Peierls phases. For a model whose zero-field Hamiltonian is real, as the spinless square lattice with a real disorder, \(H(-b) = H(b)^{\ast} = H(b)^{T}\), and the same holds for the leads and their self-energies, so that \(G(-b) = G(b)^{T}\). The Caroli formula then gives
$$ T_{pq}(-b) = \mathrm{Tr}\, \big[\Gamma_p^{T} G_{qp}^{T} \Gamma_q^{T} G_{qp}^{\ast}\big] = \mathrm{Tr}\, \big[\Gamma_q\, G_{qp}\, \Gamma_p\, G_{qp}^{\dagger}\big] = T_{qp}(b) , $$
the reciprocity of Onsager and Büttiker: reversing the field transposes the matrix of transmissions. With spin, the same follows from time reversal. A Hall cross checks it to \(10^{-9}\), with leads along \(x\) and \(y\) in different gauges.
Accuracy and tests
| Test | What it checks |
|---|---|
flake_spectra_are_gauge_invariant (caroli-model) | Square and graphene flakes of 8 × 7 cells at \(b = 0.37\): the spectra in the gauges landau_x, landau_y and symmetric agree to \(10^{-12}\), and differ from the zero-field spectrum by more than \(10^{-2}\) |
peierls_as_a_hopping_term, displacements_give_the_peierls_phases (caroli-model) | The Peierls phase written as a hopping term, and a uniform \(\mathbf A\) applied as \(e^{-i \mathbf A \cdot \mathbf d}\) to the bonds, give the Hamiltonian of with_peierls to \(10^{-14}\) |
transmission_is_gauge_invariant (caroli-green) | The shifted gauge \(\mathbf A = -b (y - y_0) \hat x\) (\(b = 0.23\), \(y_0 = 3.7\)) on a disordered 12 × 9 sample: the same transmissions to \(10^{-10}\) at four energies |
leads_need_an_invariant_gauge (caroli-green) | Leads along \(x\) in the gauge landau_y: the constructor panics |
quantum_hall_plateaus (caroli-green) | \(b = 0.1\), a 40 × 60 ribbon along \(x\) with on-site disorder of width 0.2: \(T = 1, 2, 3\) to \(10^{-6}\) at \(E = -3.8, -3.6, -3.4\), between the Landau levels; nested dissection and the recursive Green's function agree to \(10^{-9}\) |
quantum_hall_plateaus_along_y (caroli-green) | The same along \(y\) with with_field, the leads taken to the gauge invariant along \(y\): the same plateaus |
hall_cross_quarter_turn (caroli-green) | A clean cross (12 wide, arms of 4, \(b = 0.05\)) is symmetric under a quarter turn, which exchanges the leads along \(x\) and along \(y\): the transmissions agree to \(10^{-9}\), and the dense and nested solvers to \(10^{-9}\) |
hall_cross_onsager (caroli-green) | A disordered cross at \(b = \pm 0.07\): \(T_{pq}(b) = T_{qp}(-b)\) to \(10^{-9}\) at three energies |
hall_cross_chirality (caroli-green) | A disordered cross (40 wide, arms of 10, \(b = 0.1\)) at \(\nu = 1\) and 2: each lead sends \(\nu\) channels, to \(10^{-6}\), into the next lead around the cross, and less than \(10^{-6}\) into the others |
hall_bar (caroli/tests/tutorials.rs) | The same cross as a Hall bar, a current from left to right and the other two leads as voltage probes: \(R_{xy} = \pm h/(\nu e^2)\) and the two-terminal resistance \(h/(\nu e^2)\) to \(10^{-6}\), so \(R_{xx} = 0\) |
aharonov_bohm_ring (caroli/tests/tutorials.rs) | A phase on the bonds that cross a cut above the hole of a ring: the transmission is periodic in the flux with the period \(2\pi\) and depends on it |
Other tests run in a field too: the propagating modes of a lead in a field carry unit current (caroli-green/tests/lead_modes.rs); the scattering matrix of a disordered sample at \(b = 0.2\) is unitary to \(10^{-9}\) and the same from the two-terminal and multi-terminal solvers (caroli-green/tests/nested.rs); in a disordered cross at \(b = 0.2\) the bond currents obey Kirchhoff's law at every inner site and carry \(T_{pq}\) out of each arm (caroli-green/tests/nested_multi.rs); the occupied densities and bond currents of the scattering states match the recursive lesser Green's function to \(10^{-10}\) at \(b = 0.15\) (caroli-keldysh/tests/nested_states.rs).
In the code
| Item | Role |
|---|---|
Model::with_peierls | Any Peierls phase \(\phi(\mathbf r_i, \mathbf r_j)\) |
Model::with_field, Model::field | A uniform field in the gauge landau_x, with the gauge of each lead changed by the transport constructors |
Peierls | The trait of a phase (closures of two positions implement it) |
gauge | landau_x, landau_y, symmetric, landau_x_to_along |
TwoTerminal::from_model, NestedTwoTerminal::from_model | Two leads along an axis, everything in the gauge of the axis |
MultiTerminal::from_model, NestedMultiTerminal::from_model | Leads on any Interface, each in its own gauge, the couplings mixed |
lead_voltages | The Landauer–Büttiker equations of a multi-terminal device: Hall and longitudinal resistances |
The gauge changes themselves are in the private module gauge of caroli-green. In the caroli command, field in [model] calls with_field (The caroli Command).
References
- R. Peierls, Zur Theorie des Diamagnetismus von Leitungselektronen, Z. Phys. 80, 763 (1933).
- D. R. Hofstadter, Energy levels and wave functions of Bloch electrons in rational and irrational magnetic fields, Phys. Rev. B 14, 2239 (1976).
- B. I. Halperin, Quantized Hall conductance, current-carrying edge states, and the existence of extended states in a two-dimensional disordered potential, Phys. Rev. B 25, 2185 (1982).
- M. Büttiker, Four-terminal phase-coherent conductance, Phys. Rev. Lett. 57, 1761 (1986).
- M. Büttiker, Symmetry of electrical conduction, IBM J. Res. Dev. 32, 317 (1988).
- L. Onsager, Reciprocal relations in irreversible processes. I, Phys. Rev. 37, 405 (1931).
- K. v. Klitzing, G. Dorda and M. Pepper, New method for high-accuracy determination of the fine-structure constant based on quantized Hall resistance, Phys. Rev. Lett. 45, 494 (1980).
- C. W. Groth, M. Wimmer, A. R. Akhmerov and X. Waintal, Kwant: a software package for quantum transport, New J. Phys. 16, 063065 (2014).