DMRG-11 Open vs Closed Boundary Conditions
Every simulation so far in this series has used an open chain, justified in passing as the geometry DMRG handles best. This module makes that choice the subject rather than the assumption, and puts a price on it.
Open and periodic boundaries give different answers at finite and converge to the thermodynamic limit at different rates. To measure any of that we need a known target, so we work at the one interaction strength where the Bethe ansatz supplies an exact bulk energy — , the isotropic Heisenberg point — and compare the two geometries against it.
The reference point
Using the Hamiltonian for the spinless fermion chain in DMRG-07 with parameters:
we focus on the isotropic point , and therefore . Note, this is simultaneously the critical interaction strength at which the chain opens a charge-density-wave gap as well as the one interaction strength where the Bethe ansatz hands us a closed-form energy. This was established for the Heisenberg chain by Bethe (1931) and extended to the anisotropic chain by Yang and Yang (1966), and quoted per bond (in the thermodynamic limit), in DMRG-02 and used throughout DMRG-03.
Note that the ring is a genuinely different model here, not just a different lattice: as DMRG-08 noted, periodic boundaries leave a surviving Jordan-Wigner string, so hardcore boson on a ring is the XXZ chain but no longer the spinless-fermion chain. The comparison below is between two boundary conditions on the spin problem, which is what the Bethe ansatz value refers to.
Where the surface term comes from
Expanding the interaction with :
where counts the bonds touching site and is the number of bonds. In the bulk and the middle term is , a constant at fixed filling.
This is where the two geometries part company.
A ring has everywhere and : the middle term is a constant outright, and there is no surface at all.
An open chain has and at the two ends, leaving a boundary field that ALPS’s uniform mu cannot represent.
This is a surface term: it leaves the bulk energy density untouched and contributes at order , so the open chain approaches the thermodynamic limit an order slower than the ring, whose leading correction is the conformal .
The cost of a ring
DMRG on a ring must carry entanglement across two cuts rather than one, and the bond dimension needed for a given accuracy grows sharply as a result. The two effects pull against each other, so the runs below hold fixed at the same value for both geometries and let each cost show up on its own: the finite-size error in the energy per bond, and the truncation error at a given .
Lattice
An open chain of sites with bonds, every site carrying and every bond the same and :
-mu -mu -mu -mu -mu
o---------o---------o------- ... -------------o---------o
1 2 3 L-1 L
t, V t, V t, V t, V
^ ^
z = 1 z = 1 <- boundary field lives here
z = 2 everywhere in betweenThe two end sites touch one bond instead of two, which is the origin of the surface term. The ring closes that gap, adding an -th bond and making every site equivalent:
t, V t, V t, V t, V
o---------o---------o------- ... -------------o
| -mu -mu -mu -mu |
1 2 3 L
| t, V |
+---------------------------------------------+
z = 2 everywhere, no surface, one extra cut for DMRG to carryBoth open chain lattice and chain lattice are built in, so no lattice file is needed — see the ALPS lattice library.
Parameters
As stated above, we use , so , , . We also elect to use hardcore boson form for the reason given in DMRG-08:
| Parameter | Meaning | Value |
|---|---|---|
LATTICE | the boundary condition under study | open chain lattice / chain lattice |
MODEL | the boson form, established in DMRG-10 | hardcore boson |
L | chain length | 16, 24, 32, 48, 64 |
CONSERVED_QUANTUMNUMBERS | quantum numbers held fixed | N |
N_total | particle-number sector; is half filling | |
t | hopping, | 0.5 |
V | nearest-neighbor repulsion, ; note | 1 |
mu | chemical potential, , cancelling the term | 1 |
SWEEPS | finite-size sweeps | 8 |
NUMBER_EIGENVALUES | eigenstates requested | 1 |
MAXSTATES | bond dimension , held equal for both geometries | 200 |
LATTICE is the only parameter that differs between the two runs, which is the point: whatever separates the columns below is the boundary condition and nothing else.
There is no Sz_total anywhere: a spinless fermion has no spin to project, and the sector is fixed by N_total instead.
That substitution is the parameter-file face of from DMRG-07.
Parameter files
The open chain, at the length used for the bond-dimension scan below:
LATTICE="open chain lattice"
MODEL="hardcore boson"
CONSERVED_QUANTUMNUMBERS="N"
N_total=16
t=0.5
V=1
mu=1
L=32
NUMBER_EIGENVALUES=1
{SWEEPS=8; MAXSTATES=200}The ring, identical in every line but the first:
LATTICE="chain lattice"
MODEL="hardcore boson"
CONSERVED_QUANTUMNUMBERS="N"
N_total=16
t=0.5
V=1
mu=1
L=32
NUMBER_EIGENVALUES=1
{SWEEPS=8; MAXSTATES=200}Running the simulation
parameter2xml parm_open
dmrg --write-xml parm_open.in.xmlThe script run_bethe_ansatz.py runs both geometries, converts each energy to spin units, and prints the two tables below:
python3 run_bethe_ansatz.py --lengths 16 24 32 48 64 --maxstates 200 \
--dscan 20 40 80 160 320 --dscan-length 32Pass --alps-bin /path/to/alps/bin if the ALPS executables are not on your PATH.
Results
Each DMRG energy is converted to spin units by adding the constant derived above, , and divided by the number of bonds — on the open chain, on the ring.
Energy per bond at equal bond dimension
Both geometries are run at , eight sweeps, half filling. The only difference between them is LATTICE:
| open | ring | |||
|---|---|---|---|---|
| 16 | ||||
| 24 | ||||
| 32 | ||||
| 48 | ||||
| 64 |
At every length the ring sits far closer to the Bethe ansatz value, and the two deviation columns pull apart as grows rather than closing on each other.
The open chain is worse not because DMRG did a poorer job on it — both columns are converged — but because of what it is being compared against. The Bethe value is the energy per bond of an infinite chain, which is pure bulk. The open chain’s two end sites touch one bond instead of two, so they carry the boundary field derived above and the bonds near them are not bulk bonds. That excess is a fixed amount of energy: it lives at the two ends and does not grow with the chain. Dividing the total by bonds therefore spreads that constant over the whole system, adding a term of order to — and the open deviation column is exactly that surface energy per bond, nothing else. A ring has no ends at all: every site has two neighbors, every bond is a bulk bond, and no surface contribution enters its in the first place, so what remains in the ring column is the genuine finite-size correction.
The two convergence orders follow from that directly. Double the length and the open chain’s deviation halves — the same fixed end cost shared over twice as many bonds — while the ring’s quarters. It is a difference of order, against , not of prefactor, so no amount of extra length closes it. The check is to multiply each column by its own power: the open chain’s deviation times is flat across the whole series, confirming a genuine surface term, while the ring’s times settles onto the conformal prediction at central charge and spinon velocity .
What the ring costs in bond dimension
The ring wins the table above, so the obvious question is why the rest of this series uses open chains. Holding and scanning , with measured against each geometry’s own converged energy taken from a run:
| open | open | ring | ring | |
|---|---|---|---|---|
| 20 | ||||
| 40 | ||||
| 80 | ||||
| 160 | ||||
| 320 |
The open chain is converged to nine digits by and to the full printed precision by . The ring at has only just reached the accuracy the open chain had at — a factor of eight in bond dimension, at alone, and the factor grows with length. The reason is the extra entanglement cut: split a ring into two arcs and it is severed in two places, so the entanglement entropy across the cut is twice the open chain’s at the same length, and the bond dimension needed to hold it grows accordingly.
The same cost is quietly present in the first table. At the fixed used there, the open chain sits at machine precision at every length in the series, while the ring’s truncation error climbs by seven orders of magnitude between the shortest and longest chain — because the entanglement it has to carry grows with and the bond dimension does not. Over this range the ring’s finite-size error is still comfortably the larger of the two, so the comparison stands; but the two are closing, and on a ring it is the bond dimension that runs out first.
Summary
At equal bond dimension the ring is the better finite-size approximation to the bulk by a wide margin: its energy per bond converges as with the conformal coefficient , while the open chain carries a surface energy from its two singly-coordinated ends and converges only as , leaving it times further from at . What the ring pays for that is bond dimension: two entanglement cuts instead of one put it eight times behind the open chain in at , with the gap widening as the chain gets longer. Open boundaries are used throughout this series because that second cost compounds with and the first does not — a surface term is a known correction, while an unconverged is an error with no form to fit.
Questions
- Push the ring’s bond-dimension scan past at and plot against on log axes for both geometries. Is the ring’s decay a power law in or an exponential, and how does that compare to the open chain’s?
- Repeat the scan at instead of . By what factor does the ring’s requirement grow with length, and does the open chain’s grow at all?
- Confirm the surface energy is local. Compare from the table above against the bond energy measured near the ends versus at the center of an open chain — how many sites in does the bond energy reach its bulk value?
- Remove the surface term instead of tolerating it. Use the special-edge lattice of DMRG-08 to set site by site, which cancels the boundary field exactly. Does the open chain’s deviation column now fall as , and does its coefficient match the ring’s ?
- Repeat the comparison off the isotropic point, at () inside the gapless phase and at () inside the gapped CDW phase. Once the correlation length is finite the ring and the chain should agree exponentially fast in — at which does the distinction stop mattering?