Matrix Wilson chains
Set chain_file=chain.dat in the [param] block to load iterative Wilson-chain
coefficients from that file. Relative paths start in the calculation directory.
The solver still reads the symmetry, channel count, seed energies, boundary
fermion operators, and measured operators from data. The seed must contain the
actual Hamiltonian through site Ninit, including the impurity hybridization.
The solver takes the first new bond from T Ninit and the first new onsite
matrix from E Ninit+1. Legacy chain options and tables, if present, remain
available to decode the old file layout.
Coefficients and file syntax
Let \(f_n\) be the column of annihilation operators on Wilson site \(n\). The sidecar supplies the coefficients in
The normal onsite matrix \(E_n\) is Hermitian and the onsite pairing matrix
\(D_n\) is antisymmetric. Intersite matrices use row = site \(n+1\) and column =
site \(n\). Their Hermitian conjugate contributions are generated by the
solver. The onsite convention retains the scalar contribution of the number
operators. For example, a legacy term zeta*(n_up+n_down-1) differs in absolute
energy from E=zeta*I by zeta per added site. Relative energies and normalized
observables agree for the same Hamiltonian up to that constant.
- The first line is
# mixchain Wilson chain. The second line starts with#and gives whitespace-separatedkey=valuefields. Existing normalmixchainfiles usegauge=polar. For general physical matrices useversion=2 gauge=physical. Convertgauge=nambucoefficients into the physical basis before use. - The header's
channelsis the matrix dimension. For \(K\) spinful channels use \(K\times K\) normal matrices for identical up and down components, or \(2K\times2K\) matrices in the order channel 1 up, channel 1 down, channel 2 up, channel 2 down, and so on. Pairing requires the explicit mode dimension. Spinless seeds have one mode per channel, andSLandSL3conserve charge. ForQST,QSTZ,QSZTZandQJ, the three channel labels correspond to orbital projections \(+1,0,-1\). - A row has fields
block n i j value, wherenstarts at zero and the matrix indicesi,jstart at one. Usecomplex=0for one numerical column orcomplex=1for the two columnsRe Im. A complex sidecar can be used with a real seed. Whole-line comments and blank lines are allowed. - Supply each element of each included matrix, including zero entries.
Eis required for sitesNinit+1..NmaxandTfor bondsNinit..Nmax-1, using the header'sNmax. Earlier matrices and a terminalT Nmaxare optional. MissingDandAmatrices represent zero pairing. The optionalV 0block carries seed metadata formixchainworkflows. - Coefficients are physical energies in the input units, with the
bandrescalefactor already included. The solver applies the usual NRG rescaling. Headerz,Lambda, andbandrescalemust matchparam. A cutoff requested throughNmaxorTmintakes precedence over a longer available chain. Requests beyond the available chain are errors.
Symmetry validation
Choose symtype when you prepare the seed. The solver checks every supplied
chain matrix against that same symmetry, including matrices in the optional
prefix and beyond a requested cutoff. Validation uses the supplied basis and
gauge. It projects onto the invariant operators when the largest correction
is at most \(10^{-12}\) of the local scale. This scale is the largest normal
or anomalous entry on the bond, or the largest onsite or neighboring bond
entry for onsite checks. A failure identifies the input file, block, site
and entry. For example, QS requires spin-independent normal matrices,
whereas U1 allows spin mixing. QJ admits different coefficients for
\(j=1/2\) and \(j=3/2\).
With substeps=true, all matrices must also preserve the channel-by-channel
schedule. Use full-shell iteration for interchannel terms. A matrix run
with Ninit>0 starts interleaving after the last complete shell in the seed.
Ordinary spectral broadening and \(z\)-averaging work with sidecars.
For derivative-based adaptive broadening, set adaptive_broadening=true
and supply a version 2 dhdz.in file.
This works with normal and paired matrices, for full shells and for chains
compatible with interleaved iteration.
Example with a normal mixchain file
Generate chain.dat with mixchain and prepare a matching seed for the same
site-zero matrix and impurity hybridization. From a source build, the
SIAM example below uses the checked-in QS seed template. Its staging script
converts V to the template's hybridization normalization.
repo=$PWD
work=$(mktemp -d)
export PATH="$repo/build/tools:$repo/build/c++:$PATH"
example="$repo/test/mixchain+nrgrun"
cd "$work"
cp -R "$example/templates/QS/." .
cp "$example/mixchain_qs/param" "$example/mixchain_qs/param-mixchain" .
sh "$example/mixchain_qs/make_input.sh"
mixchain param-mixchain
perl "$example/stage_QS.pl"
./instantiate
printf '\nchain_file=chain.dat\n' >> param
nrg
Complex superconducting example
The example uses a real spinful NONE seed with Lambda=3, z=1, and
Ninit=0. It adds site 1, with onsite pairing
\((0.03+0.02i) f_{1,\uparrow}^\dagger f_{1,\downarrow}^\dagger+\mathrm{H.c.}\)
and an anomalous bond from site 0. Run from the repository root with
the build-tree executable.
repo=$PWD
work=$(mktemp -d)
cp test/c++sym_conventions/conv_doublet_1ch_NONE/data "$work/data"
cd "$work"
cat > param <<'PARAM'
[param]
symtype=NONE
Lambda=3
Nmax=1
keep=256
chain_file=chain.dat
PARAM
cat > chain.dat <<'CHAIN'
# mixchain Wilson chain
# channels=2 Nmax=1 z=1 Lambda=3 bandrescale=1 complex=1 version=2 gauge=physical
E 1 1 1 0.05 0
E 1 1 2 0 0
E 1 2 1 0 0
E 1 2 2 0.05 0
T 0 1 1 0.40 0.05
T 0 1 2 0 0
T 0 2 1 0 0
T 0 2 2 0.40 0.05
D 1 1 1 0 0
D 1 1 2 0.03 0.02
D 1 2 1 -0.03 -0.02
D 1 2 2 0 0
A 0 1 1 0 0
A 0 1 2 0.02 0.01
A 0 2 1 -0.02 -0.01
A 0 2 2 0 0
CHAIN
"$repo/build/c++/nrg"