iMPS Initialization¶
Construct a symmetry-aware initial unit cell for VUMPS.
init_imps
¶
init_imps(
N: int,
Spc: Index,
Op: Dict[str, Tensor],
bond_dim: int = 1,
*,
config: Optional[List[int]] = None,
seed: int = 42,
dtype: dtype = torch.float64,
) -> iMPS
Construct the unit cell of an initial iMPS for VUMPS.
Works for all three particle types without a particle-type argument, as
the (Spc, Op) pair from load_space carries the symmetry. The cell is
returned gauge-fixed and normalized, as vumps.run expects.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
N
|
int
|
Number of sites in the unit cell. |
required |
Spc
|
Index
|
Physical index returned by |
required |
Op
|
Dict[str, Tensor]
|
Operator dictionary returned by |
required |
bond_dim
|
int
|
Target width of each bond.
|
1
|
config
|
Optional[List[int]]
|
Sector index into |
None
|
seed
|
int
|
Base random seed used when |
42
|
dtype
|
dtype
|
Block dtype of the site tensors, |
float64
|
Returns:
| Type | Description |
|---|---|
iMPS
|
Gauge-fixed unit cell, normalized so that every bond's Schmidt weights sum to one. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Examples:
Product cell for the spin-½ Heisenberg chain under U(1), ready for the two-site scheme to expand:
>>> from nicole import load_space
>>> from alice import init_imps
>>> Spc, Op = load_space('Spin', 'U1', {'J': 0.5})
>>> imps = init_imps(2, Spc, Op)
Random cell of width 16 for spinless fermions at half filling:
A four-site cell with an explicit pattern, two up then two down:
Notes¶
init_imps operates in the same two modes as init_mps, selected by bond_dim.
Product cell (bond_dim=1) — every bond carries a single sector, fixed by propagating the physical charges of the chosen site configuration through the group fusion rules. The one-site scheme can never leave a cell this narrow, so pair it with scheme='2s', which grows it from the first iteration.
Random cell (bond_dim>1) — each bond is given the charges reachable at its own position, and the tensors are filled with random entries. Ready for either scheme.
Both modes are particle-type agnostic: the (Spc, Op) pair returned by Nicole's load_space encodes all the symmetry information, so no spin=, symmetry=, or particle_type= argument is needed.
What the tiling demands¶
Bond N is bond 0, and two things follow that have no counterpart in init_mps.
The cell is charge neutral. Fusing the physical charges of the cell has to give back the charge it started from, which in Alice's particle-hole symmetric conventions means half filling for fermions and zero magnetization for spins. This is a property of a cell, not a choice, so there is no target_qn argument: a doped or magnetized uniform state would need the bond charges to come back shifted, which is not a cell that tiles. config chooses the pattern within the cell, and a config carrying net charge is refused. So is a cell length that admits no neutral configuration at all, an odd one for spin-½.
Each bond carries only the charges reachable at its own position. Bond k sits after k physical sites, so it can only hold charges an even number of fusion steps away from the ones its neighbors hold. Giving every bond the same sectors instead produces a transfer operator with two dominant eigenvalues of opposite sign, which iMPS gauge fixing reports as a two-cycle.
Random cells that cannot be gauge fixed¶
Random amplitudes land often enough on a transfer operator whose two largest eigenvalues are equal and opposite, or too close to separate within the sweep budget, and neither is a cell a gauge can be found for. init_imps repeats the draw with a shifted seed when that happens, up to eight times, which stays deterministic for a given seed. If all of them fail, the error suggests the three ways out: another seed, a different width, or bond_dim=1 with scheme='2s', which grows the width from a product state instead.
See Also¶
- iMPS — the returned type.
- init_mps — the finite counterpart.
- build_ihamiltonian — build the matching Hamiltonian iMPO.
- vumps.run — consumes the cell.