The protocol
How a current point is judged silent or dissipating, and how an onset and an efficiency are bracketed. Most of the silent failure modes of a diode simulation live here, not in the equations.
A current ladder
A run is a ladder of currents for each polarity. Each current starts from the state the previous one left, so the order of the
ladder is part of the measurement: it gives the hysteresis. A point is integrated in cycles of lMax steps (40 by default)
until it closes. The down branch (scripts/hysteresis.jl) walks the currents back from the state a ladder ended in and
brackets the retrapping current Ir by the same rule; scripts/mh.jl walks the field instead, 0 → H → 0 at a
fixed current, for the magnetisation loop M(H) and the fields where vortices enter and leave.
The verdict
A rung integrated for Δt at voltage V carries |V|Δt/2π crossings per measuring line: silent below one, dissipating at ten or more, undecided in between.
| verdict | meaning |
|---|---|
F | a fixed point: |Ψμ| and the field change by less than the tolerance per cycle after the floor
t_min_GL (400 tGL), and the second half carries fewer than f_margin = 0.5 crossings per line.
A slow flow near an onset can look fixed over a short cycle. |
V | dissipating: after the floor t_min_GL_res (1584 tGL), ten or more crossings per
line, closed at v_margin = 1.1 times that, so the slope the verdict uses lands above ten. |
N | a sample gone normal: a point that would close F with ⟨|Ψ1|²⟩ below 2 % of the
largest of the F points before it. The normal state is a fixed point with no phase to cross, so with large
relaxation ratios or KWT an onset can be a collapse. N counts as dissipating. |
T | the heat model went above its cut. |
D | a point that closed F and crossed when continued (the delay, below). |
The onset by the delay
Near a saddle-node onset the delay before the first phase slip, after a jump from a silent state, diverges as
\[ D(J) = \frac{a}{\sqrt{J-J_c}} + b . \]A window of fixed length therefore biases the onset up: the rung just above Jc closes F on any finite
window. In the two-band diode at κ = 2, the delays are 1600–2600 tGL against windows of 400. With
t_confirm_GL, at the first V after an F the silent rungs below it are continued at their current,
from copies of their closed states, up to that time in all. One that crosses becomes D, and the next one down is
continued, until one stays silent. delay_bracket gives the onset that way; it is the one to quote.
crossing_times measures delays directly, and tools/delay_fit.py fits the law.
Refining an onset
scripts/refine.jl RUNDIR ± reads a coarse ladder, finds its bracket, and runs a finer ladder inside it from the
saved state of the last silent rung. It joins the two, gives the bracket and η, and can confirm by the delay
(--confirm T). A coarse ladder in steps of 0.1 and one refinement in steps of 0.01 cost far less than a fine ladder from
zero.
With noise
In [protocol], slip_band_mode = "any_band" lets each band trigger a flowing closure or a
delay crossing. The window bracket uses the largest magnitude of the gated second-half voltages. An exhausted rung
with a low rate remains undecided. The output records the triggering band. The default "band1" retains
the historical rule and V still reports band 1.
With delay confirmation enabled, confirm_replay = true saves the field PCG and random stream at each buffered
rung. The confirmation runs on the host. A checkpoint must contain these histories for active terms to replay its saved rungs.
With thermal noise the state never reaches a fixed point. A rung then closes silent when it has held t_min_GL_res
without a phase slip on any band. Set that time to the waiting time the question needs. An escape time is a distribution, not a
number: to measure one, run many seeds.
Counting vortices
The gauge-invariant phase differences around a plaquette plus the flux through it are 2π times an integer, exactly on the lattice. A vortex count is therefore an integer, not a rounding. Their sum over a plane equals the winding of the phase around the edge of the sample (the discrete Stokes theorem), which is the fluxoid, not the flux/2π: the screening currents of the edges carry field without vortices. Two cautions:
- A band with almost no condensate still gets the windings that the Josephson coupling imposes on it, so read a count with |Ψμ|² beside it.
- Count on interior planes: the face planes are copies of their neighbours.
Stop, resume, polarities
- Stop. A file
STOP.txtin the run folder stops a run cleanly after the current point; the terminal menu writes it (keys). - Resume.
--resume(keyu) continues from the checkpoint, and the result is the one of a run that never stopped on CPU with identical arithmetic. This also holds with noise, materials and the insulating buffer. Before the first checkpoint, the configured initial seed is used. GPU loading reconstructs link exponentials on the host, so GPU continuation is checked within tolerance, not generally to the bit. - Polarities.
--polarity +and--polarity -run the two polarities as two processes into the same folder; the one that ends second writes the summary.
Reporting an efficiency
A main checkpoint saves PCG/RNG history. Older states buffered for delay confirmation do not each have their own such history; rewinding one is a separate reproducibility limit. Do not treat the normal stop/resume tests as a guarantee for every buffered rewind.
- Quote the bracket of each onset, and η with its range from the brackets.
- Quote the onset by the delay when the window could bias it.
- Quote the mesh with an absolute onset. At dx = 0.5 ξ the tip of a notch is resolved at the scale of a cell, so absolute onsets carry an O(dx) error of 5–12 %; η and trends do not feel it.
- Run the mirror-symmetric control: it must give η = 0.
- Check ⟨|Ψμ|²⟩ of every band before reading a band-resolved number, and L/λc ≳ 10 with KWT.
- Quote flowing voltages at the default step.
The paper (doi:10.5281/zenodo.23603709) describes the failure modes each of these rules guards against.