tencirlab.peps¶
Source · Used by: Figure 2(a,b) · 6×6 PEPS versus exact densities
Single-layer PEPS amplitudes on open square lattices for variational Monte Carlo, bosonic or fermionic, contracted exactly along a cached path.
PEPS ¶
PEPS on an open rows x columns square lattice, site i = y * columns + x.
Site tensors have legs (physical, left, right, down, up); legs on the
boundary have dimension one. The parameters are one flat complex vector holding
the free tensor entries site by site. A bosonic PEPS has all entries free. A
fermionic PEPS keeps only parity-even entries, where physical index p and
virtual index k carry parity p % 2 and k % 2, and absorbs the swap of
each occupied physical leg with the up legs it crosses on its way to the left
boundary of its row, the convention of arXiv:2506.20106.
The sampled single-layer network is contracted exactly along a path searched once at construction. Its cost grows exponentially with the shorter side, so this suits lattices up to about 8 x 8 at D=4; larger ones need boundary-MPS contraction, which is not implemented here.
Source code in tencirlab/peps.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | |
normalize ¶
normalize(theta: Array) -> jax.Array
Scale each site tensor to unit norm, which leaves the state unchanged.
Source code in tencirlab/peps.py
93 94 95 96 97 98 99 100 | |
sliced ¶
sliced(theta: Array, occupation: Array) -> list[jax.Array]
Site tensors (left, right, down, up) at the given physical indices.
Source code in tencirlab/peps.py
113 114 115 116 117 118 119 120 121 122 123 124 125 126 | |
amplitude ¶
amplitude(theta: Array, occupation: Array) -> jax.Array
Amplitude of one configuration, occupation an integer vector.
Source code in tencirlab/peps.py
128 129 130 131 132 133 134 135 | |
embed ¶
embed(theta: Array, smaller: PEPS) -> jax.Array
Parameters of this PEPS representing the state of a smaller-D one.
Source code in tencirlab/peps.py
137 138 139 140 141 142 143 144 145 | |
History¶
| Date | Pull request | Kind | Change |
|---|---|---|---|
| 2026-12-01 | #10 | migration | Fermionic PEPS–tVMC corner quench |