Fermionic Gaussian states and dynamics are completely characterized by their two-point correlations (covariance matrix), making them efficiently simulable on classical computers [1 , 2 , 3 , 4 ] . Consequently, non-Gaussian states or operations are essential resources for universal quantum computation [5 ] . This resource-theoretic structure closely parallels the distinction between efficiently simulable Clifford circuits and nonstabilizer (magic) resources in spin systems [6 , 7 ] . In interacting electronic systems, fermionic non-Gaussianity also quantifies correlations beyond Gaussian or mean-field descriptions [8 ] and may provide a way to assess the limitations of Gaussian variational states [9 , 10 , 11 , 12 , 13 , 14 , 15 ] . The same perspective applies to quantum chemistry, where simulating correlated molecular electronic states beyond Hartree-Fock approximations is a major goal of quantum computation [16 , 17 ] .
Recently, a resource measure based on the convolution operation [18 , 19 ] , which we call the magic Rényi entropy (MRE) [20 ] , has been proposed as a valid quantifier of many-body fermionic non-Gaussianity that satisfies resource-theoretic axioms. Specifically, the MRE with Rényi index 2 was shown to be monotone under pure-to-pure fermionic Gaussian protocols that involve measurements and feedforward [20 ] . The convolution-based framework also equally applies to bosonic [21 , 22 ] and qubit/qudit systems, reducing to the stabilizer Rényi entropy (SRE) [23 ] in the latter case [20 , 24 ] . Since the MRE is defined by the purity of a convolved state, it can be experimentally measured, e.g., via the SWAP test [25 ] or the interference of two copies [26 , 27 , 28 ] . While previously proposed covariance-matrix-based measures [29 , 30 , 31 , 32 ] provide computationally efficient diagnostics of fermionic non-Gaussianity, the MRE captures higher-order correlations [33 ] that play an essential role in strongly correlated systems. Since the number of these higher-order correlations grows exponentially with the system size, however, exact evaluation of the MRE has been limited to small system sizes.
Using matrix product states (MPSs) is a natural step for evaluating the MRE at much larger scales. For the SRE in spin systems, several practical algorithms are already available, including perfect Pauli sampling [34 , 35 ] , replicated MPS representations [36 , 37 ] , and Pauli-Markov chain sampling [38 ] , among others [39 , 40 , 41 , 42 ] . These methods rely on the fact that the SRE can be written as the higher-order moments of the probabilistic distribution (participation entropy) in the Pauli string. While the fermionic MRE inherits a similar structure in that it can be represented using higher-order moments of the characteristic function, its Grassmann nature requires careful treatment of signs, preventing it from being regarded as a participation entropy in the Majorana basis. It is thus not obvious whether the fermionic MRE admits an efficient MPS algorithm analogous to those developed for the SRE.
In this Letter, we develop a perfect-sampling method for evaluating the second-order fermionic MRE from MPSs. We introduce a bounded estimator that suppresses sampling fluctuations and a recursive contraction scheme that generates each sample directly from the input MPS. These two ideas avoid the explicit construction of the beam-splitter output MPS and keep the sampling cost to a low-order polynomial in both the system size and MPS bond dimension. We apply the method to an XXZ chain of spinful fermions with up to 128 sites. At the ferromagnetic point, the sampled MRE agrees with an exact result for every system size, and away from this point it resolves a saturation of the MRE that appears only at sizes beyond the reach of exact evaluation.
Fermionic non-Gaussianity and magic Rényi entropy.— We first briefly review the resource theory of fermionic non-Gaussianity and the MRE as a resource measure. For a system of n n n fermionic modes, the annihilation and creation operators c j c_j c j , c j † c_j^\dagger c j † satisfy the canonical anticommutation relations: { c i , c j † } = δ i j \{c_i,c_j^\dagger\}=\delta_{ij} { c i , c j † } = δ ij and { c i , c j } = { c i † , c j † } = 0 \{c_i,c_j\}=\{c_i^\dagger,c_j^\dagger\}=0 { c i , c j } = { c i † , c j † } = 0 . It is convenient to introduce 2 n 2n 2 n Majorana operators γ 2 j − 1 = c j + c j † \gamma_{2j-1}=c_j+c_j^\dagger γ 2 j − 1 = c j + c j † , γ 2 j = i ( c j − c j † ) \gamma_{2j}=i(c_j-c_j^\dagger) γ 2 j = i ( c j − c j † ) , which satisfy { γ μ , γ ν } = 2 δ μ ν \{\gamma_\mu,\gamma_\nu\}=2\delta_{\mu\nu} { γ μ , γ ν } = 2 δ μν . Writing γ = ( γ 1 , γ 2 , … , γ 2 n ) T \gamma=(\gamma_1,\gamma_2,\ldots,\gamma_{2n})^\mathsf{T} γ = ( γ 1 , γ 2 , … , γ 2 n ) T , a fermionic Gaussian unitary is generated by a quadratic Majorana operator,
U G = exp ( 1 4 γ T K γ ) , (1) U_G=\exp\left(\frac{1}{4}\gamma^{\mathsf T}K\gamma\right), \tag*{(1)} U G = exp ( 4 1 γ T K γ ) , (1)
where K ∈ R 2 n × 2 n K\in\mathbb{R}^{2n\times2n} K ∈ R 2 n × 2 n and K T = − K K^{\mathsf T}=-K K T = − K . The unitary acts linearly on the Majorana operators as U G γ U G † = O γ U_G\gamma U_G^\dagger=O\gamma U G γ U G † = O γ , where O = e − K ∈ S O ( 2 n ) O=e^{-K}\in\mathrm{SO}(2n) O = e − K ∈ SO ( 2 n ) . The set of even-parity pure Gaussian states is defined as the orbit of the vacuum under the group G n \mathcal{G}_n G n of Gaussian unitaries: G a u s s n ( + ) = { U G ∣ 0 ⟩ ⊗ n ∣ U G ∈ G n } \mathrm{Gauss}^{(+)}_n=\left\{U_G|0\rangle^{\otimes n}\mid U_G\in\mathcal{G}_n\right\} Gauss n ( + ) = { U G ∣0 ⟩ ⊗ n ∣ U G ∈ G n } ; the odd-parity sector is obtained by choosing any fixed odd-parity Gaussian reference state.
The MRE quantifies fermionic non-Gaussianity through the purity loss generated by a convolution operation. For the second-order MRE, which is the focus of this work, we use the convolution implemented by the following balanced beam splitter unitary acting on two copies of the system labeled A A A and B B B :
U B S = exp [ π 4 ∑ j = 1 n ( c A , j † c B , j − c B , j † c A , j ) ] . (2) U_{\mathrm{BS}}=\exp\left[\frac{\pi}{4}\sum_{j=1}^{n}\left(c_{A,j}^{\dagger}c_{B,j}-c_{B,j}^{\dagger}c_{A,j}\right)\right]. \tag*{(2)} U BS = exp [ 4 π j = 1 ∑ n ( c A , j † c B , j − c B , j † c A , j ) ] . (2)
For a pure input state ρ = ∣ ψ ⟩ ⟨ ψ ∣ \rho=|\psi\rangle\langle\psi| ρ = ∣ ψ ⟩ ⟨ ψ ∣ , the convolved state is C ( ρ ) = Tr B ∣ Φ ⟩ ⟨ Φ ∣ C(\rho)=\operatorname{Tr}_B|\Phi\rangle\langle\Phi| C ( ρ ) = Tr B ∣Φ ⟩ ⟨ Φ∣ , where ∣ Φ ⟩ = U B S ∣ ψ ⟩ A ∣ ψ ⟩ B |\Phi\rangle=U_{\mathrm{BS}}|\psi\rangle_A|\psi\rangle_B ∣Φ ⟩ = U BS ∣ ψ ⟩ A ∣ ψ ⟩ B . The two outputs remain separable and C ( ρ ) C(\rho) C ( ρ ) is pure if and only if the input state is Gaussian. Thus, any loss of purity reflects non-Gaussianity of the input. Accordingly, the second-order MRE is defined from the purity ν 2 = Tr [ C ( ρ ) 2 ] \nu_2=\operatorname{Tr}[C(\rho)^2] ν 2 = Tr [ C ( ρ ) 2 ] as M 2 ( ψ ) = − ln ν 2 ≥ 0 M_2(\psi)=-\ln\nu_2\geq0 M 2 ( ψ ) = − ln ν 2 ≥ 0 . For pure fermionic states, the second-order MRE satisfies the following properties [20 ] :
Faithfulness. M 2 ( ψ ) = 0 ⟺ ∣ ψ ⟩ M_2(\psi)=0\Longleftrightarrow|\psi\rangle M 2 ( ψ ) = 0 ⟺ ∣ ψ ⟩ is Gaussian.
Invariance under Gaussian unitaries. M 2 ( U G ∣ ψ ⟩ ) = M 2 ( ψ ) M_2(U_G|\psi\rangle)=M_2(\psi) M 2 ( U G ∣ ψ ⟩) = M 2 ( ψ ) for every U G ∈ G n U_G\in\mathcal{G}_n U G ∈ G n .
Additivity. M 2 ( ψ ⊗ ϕ ) = M 2 ( ψ ) + M 2 ( ϕ ) M_2(\psi\otimes\phi)=M_2(\psi)+M_2(\phi) M 2 ( ψ ⊗ ϕ ) = M 2 ( ψ ) + M 2 ( ϕ ) .
Monotonicity. A fermionic Gaussian protocol may combine Gaussian unitaries, pure Gaussian state ancillas, occupation-number measurements, partial traces, classical randomness, and feedforward. If such a protocol E \mathcal{E} E deterministically maps a pure input to a pure output, E ( ∣ ψ ⟩ ⟨ ψ ∣ ) = ∣ φ ⟩ ⟨ φ ∣ \mathcal{E}(|\psi\rangle\langle\psi|)=|\varphi\rangle\langle\varphi| E ( ∣ ψ ⟩ ⟨ ψ ∣ ) = ∣ φ ⟩ ⟨ φ ∣ , then M 2 ( φ ) ≤ M 2 ( ψ ) M_2(\varphi)\leq M_2(\psi) M 2 ( φ ) ≤ M 2 ( ψ ) .
Moreover, the linear MRE M 2 l i n = 1 − ν 2 M_2^{\mathrm{lin}}=1-\nu_2 M 2 lin = 1 − ν 2 satisfies strong monotonicity under fermionic Gaussian protocols, meaning that if a protocol maps ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ to pure outputs ∣ φ λ ⟩ |\varphi_\lambda\rangle ∣ φ λ ⟩ with probabilities p λ p_\lambda p λ , then ∑ λ p λ M 2 l i n ( φ λ ) ≤ M 2 l i n ( ψ ) \sum_\lambda p_\lambda M_2^{\mathrm{lin}}(\varphi_\lambda)\leq M_2^{\mathrm{lin}}(\psi) ∑ λ p λ M 2 lin ( φ λ ) ≤ M 2 lin ( ψ ) . Together, these properties establish M 2 M_2 M 2 as a valid resource measure of fermionic non-Gaussianity.
In general, however, computing the second-order MRE directly from a many-body wave function is prohibitively expensive; a direct evaluation in the occupation basis involves exponentially many configurations. An explicit replica-MPS calculation is also costly because the beam splitter enlarges the virtual bond dimension before taking the contraction to compute the purity.
compute the purity. For an input MPS of bond dimension D D D , the purity contracts four copies of the beam-splitter output through a transfer matrix of dimension O ( D 8 ) \mathcal{O}(D^8) O ( D 8 ) . These bottlenecks motivate a sampling method that avoids constructing the replicated tensor network.
Bounded estimator of the purity. — To this end, we recast the purity ν 2 \nu_2 ν 2 as an expectation value that can be estimated efficiently from Fock-basis samples of the output. Write Φ ( a , b ) = ⟨ a , b ∣ Φ ⟩ \Phi(a,b)=\langle a,b|\Phi\rangle Φ ( a , b ) = ⟨ a , b ∣Φ ⟩ , where a , b ∈ { 0 , 1 } n a,b\in\{0,1\}^n a , b ∈ { 0 , 1 } n label the Fock configurations of outputs A A A and B B B . Tracing out B B B gives
C ( ρ ) ( a , a ′ ) = ∑ b Φ ( a , b ) Φ ( a ′ , b ) ‾ , (3) C(\rho)(a,a')=\sum_b\Phi(a,b)\overline{\Phi(a',b)}, \tag*{(3)} C ( ρ ) ( a , a ′ ) = b ∑ Φ ( a , b ) Φ ( a ′ , b ) , (3)
where the overline denotes complex conjugation. This leads to
ν 2 = ∑ a , a ′ , b , b ′ Φ ( a , b ) ‾ Φ ( a ′ , b ′ ) ‾ Φ ( a ′ , b ) Φ ( a , b ′ ) . (4) \nu_2=\sum_{a,a',b,b'}\overline{\Phi(a,b)}\overline{\Phi(a',b')}\Phi(a',b)\Phi(a,b'). \tag*{(4)} ν 2 = a , a ′ , b , b ′ ∑ Φ ( a , b ) Φ ( a ′ , b ′ ) Φ ( a ′ , b ) Φ ( a , b ′ ) . (4)
Let X = ( ( a , b ) , ( a ′ , b ′ ) ) X=((a,b),(a',b')) X = (( a , b ) , ( a ′ , b ′ )) denote a pair of independent Fock configurations drawn from the product of the Born distribution q ( X ) = ∣ Φ ( a , b ) ∣ 2 ∣ Φ ( a ′ , b ′ ) ∣ 2 q(X)=|\Phi(a,b)|^2|\Phi(a',b')|^2 q ( X ) = ∣Φ ( a , b ) ∣ 2 ∣Φ ( a ′ , b ′ ) ∣ 2 . On the support of q q q , we define the amplitude ratio associated with exchanging the A A A -output configurations by
r ( X ) = Φ ( a ′ , b ) ‾ Φ ( a , b ′ ) ‾ Φ ( a , b ) ‾ Φ ( a ′ , b ′ ) ‾ . (5) r(X)=\frac{\overline{\Phi(a',b)}\overline{\Phi(a,b')}}{\overline{\Phi(a,b)}\overline{\Phi(a',b')}}. \tag*{(5)} r ( X ) = Φ ( a , b ) Φ ( a ′ , b ′ ) Φ ( a ′ , b ) Φ ( a , b ′ ) . (5)
Because q ( X ) r ( X ) q(X)r(X) q ( X ) r ( X ) reproduces the corresponding summand in Eq. (4) , the purity is given by ν 2 = E q [ r ] \nu_2=\mathbb{E}_q[r] ν 2 = E q [ r ] . An estimator of the same form as r ( X ) r(X) r ( X ) is used in variational Monte Carlo simulations to evaluate the purity of a reduced density matrix [43 ] .
Since the unbiased estimator r ( X ) r(X) r ( X ) is unbounded, we use the Rao-Blackwellization to construct a bounded unbiased estimator. Specifically, for each sample X X X , we define its exchanged partner T X TX T X by swapping a a a and a ′ a' a ′ while leaving b b b and b ′ b' b ′ unchanged:
T X = ( ( a ′ , b ) , ( a , b ′ ) ) . (6) TX=((a',b),(a,b')). \tag*{(6)} T X = (( a ′ , b ) , ( a , b ′ )) . (6)
When r ( X ) ≠ 0 r(X)\neq0 r ( X ) = 0 , the two configurations satisfy q ( T X ) = q ( X ) ∣ r ( X ) ∣ 2 q(TX)=q(X)|r(X)|^2 q ( T X ) = q ( X ) ∣ r ( X ) ∣ 2 and r ( T X ) = 1 / r ( X ) r(TX)=1/r(X) r ( T X ) = 1/ r ( X ) . Averaging r r r over each exchange pair with the corresponding conditional weights gives
h ( X ) = q ( X ) r ( X ) + q ( T X ) r ( T X ) q ( X ) + q ( T X ) = 2 Re r ( X ) 1 + ∣ r ( X ) ∣ 2 . (7) h(X)=\frac{q(X)r(X)+q(TX)r(TX)}{q(X)+q(TX)}=\frac{2\operatorname{Re}r(X)}{1+|r(X)|^2}. \tag*{(7)} h ( X ) = q ( X ) + q ( T X ) q ( X ) r ( X ) + q ( T X ) r ( T X ) = 1 + ∣ r ( X ) ∣ 2 2 Re r ( X ) . (7)
where h ( X ) = 0 h(X)=0 h ( X ) = 0 when r ( X ) = 0 r(X)=0 r ( X ) = 0 , while a fixed point T X = X TX=X T X = X has h ( X ) = r ( X ) = 1 h(X)=r(X)=1 h ( X ) = r ( X ) = 1 . We note that this conditional expectation preserves the mean while reducing the variance, i.e., E q [ h ] = E q [ r ] = ν 2 \mathbb{E}_q[h]=\mathbb{E}_q[r]=\nu_2 E q [ h ] = E q [ r ] = ν 2 and Var q ( h ) ≤ Var q ( r ) \operatorname{Var}_q(h)\leq\operatorname{Var}_q(r) Var q ( h ) ≤ Var q ( r ) [44 , 45 ] . Moreover, the relation 2 ∣ Re r ∣ ≤ 1 + ∣ r ∣ 2 2|\operatorname{Re}r|\leq1+|r|^2 2∣ Re r ∣ ≤ 1 + ∣ r ∣ 2 implies − 1 ≤ h ≤ 1 -1\leq h\leq1 − 1 ≤ h ≤ 1 , eliminating the large fluctuations caused by small denominators in r r r .
Evaluating the bounded estimator requires two Born samples and two additional amplitude evaluations for the exchanged configurations. The sampled configurations provide ( a , b ) (a,b) ( a , b ) and ( a ′ , b ′ ) (a',b') ( a ′ , b ′ ) , while the ratio additionally requires Φ ( a ′ , b ) \Phi(a',b) Φ ( a ′ , b ) and Φ ( a , b ′ ) \Phi(a,b') Φ ( a , b ′ ) . Thus, the remaining task is to sample exactly from ∣ Φ ∣ 2 |\Phi|^2 ∣Φ ∣ 2 and evaluate prescribed amplitudes of ∣ Φ ⟩ |\Phi\rangle ∣Φ ⟩ without explicitly constructing the replicated MPS.
Perfect sampling from an MPS.—
To sample and evaluate the amplitudes efficiently, we represent the input state as a normalized right-canonical MPS with one site per mode:
∣ ψ ⟩ = ∑ x ∈ { 0 , 1 } n ψ ( x ) ∣ x ⟩ , ψ ( x ) = A 1 x 1 A 2 x 2 ⋯ A n x n . (8) |\psi\rangle=\sum_{\boldsymbol{x}\in\{0,1\}^{n}}\psi(\boldsymbol{x})|\boldsymbol{x}\rangle,\qquad\psi(\boldsymbol{x})=A_1^{x_1}A_2^{x_2}\cdots A_n^{x_n}. \tag*{(8)} ∣ ψ ⟩ = x ∈ { 0 , 1 } n ∑ ψ ( x ) ∣ x ⟩ , ψ ( x ) = A 1 x 1 A 2 x 2 ⋯ A n x n . (8)
The tensors satisfy A j x ∈ C D j − 1 × D j A_j^{x}\in\mathbb{C}^{D_{j-1}\times D_j} A j x ∈ C D j − 1 × D j and D 0 = D n = 1 D_0=D_n=1 D 0 = D n = 1 , while ∣ x ⟩ = ( c 1 † ) x 1 ( c 2 † ) x 2 ⋯ ( c n † ) x n ∣ 0 ⟩ |\boldsymbol{x}\rangle=(c_1^\dagger)^{x_1}(c_2^\dagger)^{x_2}\cdots(c_n^\dagger)^{x_n}|0\rangle ∣ x ⟩ = ( c 1 † ) x 1 ( c 2 † ) x 2 ⋯ ( c n † ) x n ∣0 ⟩ and D = max j D j D=\max_jD_j D = max j D j . We work with a conventional MPS representation in this fixed Fock basis rather than a graded fermionic MPS [46 ] . We assume a definite fermion parity P ∈ { 0 , 1 } P\in\{0,1\} P ∈ { 0 , 1 } such that ψ ( x ) = 0 \psi(\boldsymbol{x})=0 ψ ( x ) = 0 unless ( ∑ j x j ) m o d 2 = P (\sum_jx_j)\bmod2=P ( ∑ j x j ) mod 2 = P . The tensors also satisfy ∑ x = 0 1 A j x ( A j x ) † = I D j − 1 \sum_{x=0}^{1}A_j^x(A_j^x)^\dagger=I_{D_{j-1}} ∑ x = 0 1 A j x ( A j x ) † = I D j − 1 . Let x j , y j x_j,y_j x j , y j denote the input occupations of copies A , B A,B A , B and a j , b j a_j,b_j a j , b j the corresponding output occupations after the convolution unitary, which we encode by z j = 2 a j + b j ∈ { 0 , 1 , 2 , 3 } z_j=2a_j+b_j\in\{0,1,2,3\} z j = 2 a j + b j ∈ { 0 , 1 , 2 , 3 } .
To sample X X X from the probability distribution q ( X ) q(X) q ( X ) , we independently draw two output configurations from the Born distribution using a sequence of one-site conditional probabilities. Let P Φ ( z ) = ∣ Φ ( z ) ∣ 2 P_{\Phi}(z)=|\Phi(z)|^2 P Φ ( z ) = ∣Φ ( z ) ∣ 2 denote the Born probability of the output configuration z = ( z 1 , z 2 , … , z n ) z=(z_1,z_2,\ldots,z_n) z = ( z 1 , z 2 , … , z n ) . For a prefix z ≤ j = ( z 1 , z 2 , … , z j ) z_{\leq j}=(z_1,z_2,\ldots,z_j) z ≤ j = ( z 1 , z 2 , … , z j ) , define its marginal probability by
W j ( z ≤ j ) = ∑ z > j P Φ ( z ) , W 0 = 1. (9) W_j(z_{\leq j})=\sum_{z_{>j}}P_{\Phi}(z),\qquad W_0=1. \tag*{(9)} W j ( z ≤ j ) = z > j ∑ P Φ ( z ) , W 0 = 1. (9)
Writing ( z < j , z ) (z_{<j},z) ( z < j , z ) for the prefix obtained by appending z z z to z < j z_{<j} z < j , the chain rule gives P Φ ( z ) = ∏ j = 1 n w j ( z j ∣ z < j ) P_{\Phi}(z)=\prod_{j=1}^{n}w_j(z_j\mid z_{<j}) P Φ ( z ) = ∏ j = 1 n w j ( z j ∣ z < j ) , where the conditional probability of z j z_j z j given the preceding prefix is
w j ( z ∣ z < j ) = W j ( z < j , z ) W j − 1 ( z < j ) . (10) w_j(z\mid z_{<j})=\frac{W_j(z_{<j},z)}{W_{j-1}(z_{<j})}. \tag*{(10)} w j ( z ∣ z < j ) = W j − 1 ( z < j ) W j ( z < j , z ) . (10)
Sequentially drawing each z j z_j z j from w j ( z ∣ z < j ) w_j(z\mid z_{<j}) w j ( z ∣ z < j ) produces an exact sample from P Φ P_{\Phi} P Φ [47 ] . The recursion below evaluates these conditional probabilities and the prescribed amplitudes without enumerating exponentially many configurations.
The exact output amplitude can be evaluated recursively using two parity-resolved boundary matrices. To see this, we first note that the amplitude can be written as follows, where the sum runs over x , y ∈ { 0 , 1 } n x,y\in\{0,1\}^n x , y ∈ { 0 , 1 } n :
Φ ( z ) = s ( a , b ) ∑ x , y [ ∏ j = 1 n u z j , 2 x j + y j ( − 1 ) x j p j − 1 ] ψ ( x ) ψ ( y ) . (11) \Phi(z)=s(a,b)\sum_{x,y}\left[\prod_{j=1}^{n}u_{z_j,2x_j+y_j}(-1)^{x_jp_{j-1}}\right]\psi(x)\psi(y). \tag*{(11)} Φ ( z ) = s ( a , b ) x , y ∑ [ j = 1 ∏ n u z j , 2 x j + y j ( − 1 ) x j p j − 1 ] ψ ( x ) ψ ( y ) . (11)
Here, u z , 2 x + y = ⟨ a , b ∣ U B S ( j ) ∣ x , y ⟩ u_{z,2x+y}=\langle a,b|U_{\mathrm{BS}}^{(j)}|x,y\rangle u z , 2 x + y = ⟨ a , b ∣ U BS ( j ) ∣ x , y ⟩ , with rows labeling outputs and columns labeling inputs, p j = ( ∑ k = 1 j y k ) m o d 2 p_j=(\sum_{k=1}^{j}y_k)\bmod2 p j = ( ∑ k = 1 j y k ) mod 2 with p 0 = 0 p_0=0 p 0 = 0 being the parity of the first j j j sites of input copy B B B , and the factor ( − 1 ) x j p j − 1 (-1)^{x_jp_{j-1}} ( − 1 ) x j p j − 1 accounts for moving x j x_j x j past the preceding occupations of copy B B B in the sitewise contraction. Reordering the output modes from ( A 1 , B 1 , A 2 , B 2 , … , A n , B n ) (A_1,B_1,A_2,B_2,\ldots,A_n,B_n) ( A 1 , B 1 , A 2 , B 2 , … , A n , B n ) to ( A 1 , A 2 , … , A n , B 1 , B 2 , … , B n ) (A_1,A_2,\ldots,A_n,B_1,B_2,\ldots,B_n) ( A 1 , A 2 , … , A n , B 1 , B 2 , … , B n ) contributes the sign
s ( a , b ) = ( − 1 ) ∑ j = 1 n a j ∑ k < j b k . (12) s(a,b)=(-1)^{\sum_{j=1}^{n}a_j\sum_{k<j}b_k}. \tag*{(12)} s ( a , b ) = ( − 1 ) ∑ j = 1 n a j ∑ k < j b k . (12)
Starting from B i ( 0 ) = ( 1 ) \mathcal{B}_i^{(0)}=(1) B i ( 0 ) = ( 1 ) and B i ( 1 ) = ( 0 ) \mathcal{B}_i^{(1)}=(0) B i ( 1 ) = ( 0 ) , we define two boundary matrices for each fixed prefix z ≤ j z_{\leq j} z ≤ j by
B j ( p j ) ( z ≤ j ) = ∑ p j − 1 , x , y ∈ { 0 , 1 } p j − 1 ⊕ y = p j u z j , 2 x + y ( − 1 ) x p j − 1 ( A j x ) T B j − 1 ( p j − 1 ) ( z < j ) A j y . (13) \mathcal{B}_j^{(p_j)}(z_{\leq j})=
\sum_{\substack{p_{j-1},x,y\in\{0,1\}\\p_{j-1}\oplus y=p_j}}
u_{z_j,2x+y}(-1)^{xp_{j-1}}
\left(A_j^x\right)^{\mathsf{T}}\mathcal{B}_{j-1}^{(p_{j-1})}(z_{<j})A_j^y. \tag*{(13)} B j ( p j ) ( z ≤ j ) = p j − 1 , x , y ∈ { 0 , 1 } p j − 1 ⊕ y = p j ∑ u z j , 2 x + y ( − 1 ) x p j − 1 ( A j x ) T B j − 1 ( p j − 1 ) ( z < j ) A j y . (13)
Since the fermionic sign at each site depends on the preceding occupations of copy B B B only through their parity p j − 1 p_{j-1} p j − 1 , the recursion retains only the updated bit p j = p j − 1 ⊕ y p_j=p_{j-1}\oplus y p j = p j − 1 ⊕ y . At j = n j=n j = n , the boundary matrix is a scalar and the fixed input parity leaves only p n = P p_n=P p n = P , giving Φ ( z ) = s ( a , b ) B n ( P ) ( z ) \Phi(z)=s(a,b)\mathcal{B}_n^{(P)}(z) Φ ( z ) = s ( a , b ) B n ( P ) ( z ) .
As illustrated in Figure 1 , the two current boundary matrices contain all information of the prefix needed to compute the next conditional probability. For a right-canonical MPS, the marginal probability satisfies
Figure 1. Schematic illustration of the perfect-sampling sweep. The two parity-resolved boundary matrices encode the sampled prefix and are contracted with the local tensors of the input MPS and the beam splitter to obtain the conditional probabilities at each site. After the local output is sampled, the corresponding matrices are normalized and passed to the next site, yielding an exact Born sample without constructing the coupled MPS.
W j ( z ≤ j ) = ∑ p j = 0 1 ∥ B j ( p j ) ( z ≤ j ) ∥ F 2 . (14) W_j(z_{\leq j})=\sum_{p_j=0}^{1}\left\|\mathcal{B}_j^{(p_j)}(z_{\leq j})\right\|_{\mathrm{F}}^2. \tag*{(14)} W j ( z ≤ j ) = p j = 0 ∑ 1 B j ( p j ) ( z ≤ j ) F 2 . (14)
where ∥ M ∥ F 2 = Tr ( M M † ) \|M\|_{\mathrm{F}}^2=\operatorname{Tr}(MM^\dagger) ∥ M ∥ F 2 = Tr ( M M † ) is the squared Frobenius norm; see the End Matter for the derivation. Applying Eq. (13) to the current matrices for each z j ∈ { 0 , 1 , 2 , 3 } z_j\in\{0,1,2,3\} z j ∈ { 0 , 1 , 2 , 3 } and using Eq. (14) yields the four conditional probabilities without storing earlier boundaries or contracting the unobserved suffix. For a selected prefix with nonzero probability, we apply the recursion to the normalized matrices B ^ j − 1 ( p j − 1 ) : = B j − 1 ( p j − 1 ) ( z < j ) W j − 1 ( z < j ) \widehat{B}_{j-1}^{(p_{j-1})}:=\frac{B_{j-1}^{(p_{j-1})}(z_{<j})}{\sqrt{W_{j-1}(z_{<j})}} B j − 1 ( p j − 1 ) := W j − 1 ( z < j ) B j − 1 ( p j − 1 ) ( z < j ) , which gives candidates whose squared Frobenius norms sum to w j ( z ∣ z < j ) w_j(z\mid z_{<j}) w j ( z ∣ z < j ) for each z z z . After drawing z j z_j z j according to w j ( z ∣ z < j ) w_j(z\mid z_{<j}) w j ( z ∣ z < j ) , dividing the boundary matrices by w j ( z j ∣ z < j ) \sqrt{w_j(z_j\mid z_{<j})} w j ( z j ∣ z < j ) produces B ^ ( 0 , 1 ) \widehat{B}^{(0,1)} B ( 0 , 1 ) for the next site. To recover the amplitude without numerical underflow, we set λ 0 = 0 \lambda_0=0 λ 0 = 0 and update
λ j : = 1 2 log W j ( z ≤ j ) = λ j − 1 + 1 2 log w j ( z j ∣ z < j ) . (15) \lambda_j:=\frac{1}{2}\log W_j(z_{\leq j})=\lambda_{j-1}+\frac{1}{2}\log w_j(z_j\mid z_{<j}). \tag*{(15)} λ j := 2 1 log W j ( z ≤ j ) = λ j − 1 + 2 1 log w j ( z j ∣ z < j ) . (15)
Along the selected path, we have B j ( p j ) = e λ j B ^ j ( p j ) B_j^{(p_j)}=e^{\lambda_j}\widehat{B}_j^{(p_j)} B j ( p j ) = e λ j B j ( p j ) , and the endpoint amplitude is
Φ ( a , b ) = s ( a , b ) e λ n B ^ n ( P ) . (16) \Phi(a,b)=s(a,b)e^{\lambda_n}\widehat{B}_n^{(P)}. \tag*{(16)} Φ ( a , b ) = s ( a , b ) e λ n B n ( P ) . (16)
This recursion provides both the Born samples and the prescribed amplitudes needed to estimate ν 2 \nu_2 ν 2 . The sampling sweep is summarized in Algorithm 1.
Table 1.
Two calls to Algorithm 1 generate X = ( ( a , b ) , ( a ′ , b ′ ) ) ∼ q X=((a,b),(a',b'))\sim q X = (( a , b ) , ( a ′ , b ′ )) ∼ q and return the denominator amplitudes Φ ( a , b ) Φ ( a ′ , b ′ ) \Phi(a,b)\Phi(a',b') Φ ( a , b ) Φ ( a ′ , b ′ ) in r ( X ) r(X) r ( X ) . The crossed amplitudes Φ ( a ′ , b ) Φ ( a , b ′ ) \Phi(a',b)\Phi(a,b') Φ ( a ′ , b ) Φ ( a , b ′ ) are obtained by deterministic sweeps that fix z j = 2 a j + b j ′ z_j=2a_j+b_j' z j = 2 a j + b j ′ at every site. If the norm of the boundary matrices becomes zero during a sweep, the corresponding amplitude is zero and the sweep can be terminated immediately. Thus, one sample of h ( X ) h(X) h ( X ) requires two sampling sweeps and at most two deterministic amplitude-evaluation sweeps. Because the two-copy output has even total parity, unequal parities of ∑ j a j \sum_j a_j ∑ j a j and ∑ j a j ′ \sum_j a'_j ∑ j a j ′ imply h ( X ) = 0 h(X)=0 h ( X ) = 0 , in which case the two deterministic sweeps need not be performed. Repeating the procedure N N N times yields samples X 1 , X 2 , … , X N X_1,X_2,\ldots,X_N X 1 , X 2 , … , X N and the estimator ν ~ 2 = N − 1 ∑ μ = 1 N h ( X μ ) \widetilde{\nu}_2=N^{-1}\sum_{\mu=1}^{N}h(X_\mu) ν 2 = N − 1 ∑ μ = 1 N h ( X μ ) .
Statistical error and computational cost.— We now discuss the statistical error and computational cost of the sampling method. The unbiased estimator of the purity has standard error s h / N s_h/\sqrt{N} s h / N , where s h 2 s_h^2 s h 2 is the sample variance of h ( X μ ) h(X_\mu) h ( X μ ) . When ν ~ 2 > 0 \widetilde{\nu}_2>0 ν 2 > 0 , the corresponding estimator of the MRE is M ~ 2 = − ln ν ~ 2 \widetilde{M}_2=-\ln\widetilde{\nu}_2 M 2 = − ln ν 2 , whose variance to leading order in N − 1 N^{-1} N − 1 is Var ( M ~ 2 ) ≃ Var q ( h ) / ( N ν ~ 2 2 ) \operatorname{Var}(\widetilde{M}_2)\simeq\operatorname{Var}_q(h)/(N\widetilde{\nu}_2^2) Var ( M 2 ) ≃ Var q ( h ) / ( N ν 2 2 ) . Thus, to achieve a target standard error ϵ M \epsilon_M ϵ M , one needs N ≃ Var q ( h ) / ( ϵ M 2 ν ~ 2 2 ) N\simeq\operatorname{Var}_q(h)/(\epsilon_M^2\widetilde{\nu}_2^2) N ≃ Var q ( h ) / ( ϵ M 2 ν 2 2 ) samples. Since ∣ h ∣ ≤ 1 |h|\leq1 ∣ h ∣ ≤ 1 , this sample count is at most e 2 M 2 / ϵ M 2 e^{2M_2}/\epsilon_M^2 e 2 M 2 / ϵ M 2 . While this cost can be exponentially large for an extensive M 2 M_2 M 2 , numerical results suggest that the computation remains feasible at least up to ∼ 10 2 \sim10^2 ∼ 1 0 2 sites (see the Supplemental Material [48 ] ).
The total runtime follows by combining the required sample count with the cost of evaluating each sample. At each site, the eight matrix contractions indexed by p j − 1 , x , y p_{j-1},x,y p j − 1 , x , y are evaluated once and combined with u z , 2 x + y u_{z,2x+y} u z , 2 x + y for the four values of z z z to obtain all trial updates. This contraction order avoids dense D 2 × D 2 D^2\times D^2 D 2 × D 2 transfer tensors, and each sampling or prescribed-amplitude sweep costs O ( n D 3 ) \mathcal{O}(nD^3) O ( n D 3 ) time and O ( D 2 ) \mathcal{O}(D^2) O ( D 2 ) additional working memory. Since each value of h h h requires only a constant number of sweeps, the full calculation costs O ( N n D 3 ) \mathcal{O}(NnD^3) O ( N n D 3 ) time with the same asymptotic working memory. Note that they can be generated in parallel by processes with independent random streams, which reduces the wall-clock time accordingly. When particle-number conservation is explicitly encoded in the input MPS [49 ] , the recursion can be restricted to the allowed particle-number sectors, substantially reducing the computational cost in practice while retaining the same asymptotic scaling (see End Matter for details).
Numerical benchmark.— We demonstrate our method on an XXZ chain of spinful fermions. We take fermions c j σ c_{j\sigma} c j σ with σ = ↑ , ↓ \sigma=\uparrow,\downarrow σ =↑ , ↓ on an open chain of L L L lattice sites, i.e., n = 2 L n=2L n = 2 L modes, and restrict them to the subspace with one fermion per site, where the Hamiltonian is the spin-1/2 XXZ chain
H = ∑ j = 1 L − 1 ( S j x S j + 1 x + S j y S j + 1 y + Δ S j z S j + 1 z ) . (17) H=\sum_{j=1}^{L-1}\left(S_j^xS_{j+1}^x+S_j^yS_{j+1}^y+\Delta S_j^zS_{j+1}^z\right). \tag*{(17)} H = j = 1 ∑ L − 1 ( S j x S j + 1 x + S j y S j + 1 y + Δ S j z S j + 1 z ) . (17)
with S j + = c j ↑ † c j ↓ S_j^+=c_{j\uparrow}^{\dagger}c_{j\downarrow} S j + = c j ↑ † c j ↓ and S j z = ( n j ↑ − n j ↓ ) / 2 S_j^z=(n_{j\uparrow}-n_{j\downarrow})/2 S j z = ( n j ↑ − n j ↓ ) /2 . The Hamiltonian conserves N ↑ N_{\uparrow} N ↑ and N ↓ N_{\downarrow} N ↓ separately. For even L L L , we consider its ground state at N ↑ = N ↓ = L / 2 N_{\uparrow}=N_{\downarrow}=L/2 N ↑ = N ↓ = L /2 , which is unique for every finite L L L [48 ] . Particle-number conservation and the spin-flip symmetry of this state fix ⟨ c i σ † c j σ ′ ⟩ \langle c_{i\sigma}^{\dagger}c_{j\sigma'}\rangle ⟨ c iσ † c j σ ′ ⟩ to δ i j δ σ σ ′ / 2 \delta_{ij}\delta_{\sigma\sigma'}/2 δ ij δ σ σ ′ /2 , and the covariance matrix becomes identical for any Δ \Delta Δ [48 ] . Covariance-matrix-based measures [29 , 30 , 31 , 32 ] cannot distinguish this family of ground states. For example, the fermionic antiflatness F k \mathcal{F}_k F k [29 ] takes its maximal value 2 L 2L 2 L for every k k k and any Δ \Delta Δ .
At Δ = − 1 \Delta=-1 Δ = − 1 , the Hamiltonian becomes the ferromagnetic Heisenberg model via a sublattice rotation, whose ground state is the spin-L / 2 L/2 L /2 Dicke state with L / 2 L/2 L /2 up spins [50 ] . Using the fact that this sublattice rotation is a Gaussian unitary, we can analytically compute the MRE of the ground state of H H H in this sector using the Dicke state, which provides a useful benchmark. It behaves for large L L L as [48 ]
M 2 = 3 2 ln L − ln 4 2 π 3 / 2 + 9 16 L + O ( L − 2 ) . (18) M_2=\frac{3}{2}\ln L-\ln\frac{4\sqrt{2}}{\pi^{3/2}}+\frac{9}{16L}+\mathcal{O}(L^{-2}). \tag*{(18)} M 2 = 2 3 ln L − ln π 3/2 4 2 + 16 L 9 + O ( L − 2 ) . (18)
We construct the exact MPS of the ground state at Δ = − 1 \Delta=-1 Δ = − 1 with bond dimension D = L D=L D = L . In Figure 2 (a), the MRE sampled from this MPS is in perfect agreement with Eq. (18) at all sizes up to L = 128 L=128 L = 128 [48 ] .
Figure 2. (a) Second-order MRE of the ground state as a function of the number of sites L L L . At Δ = − 1 \Delta=-1 Δ = − 1 , the dashed black line is the large-L L L asymptotic form (18) , and the circles are the perfect sampling from the exact MPS. The squares and triangles are the perfect sampling from the DMRG states at Δ = − 1.02 \Delta=-1.02 Δ = − 1.02 and − 1.005 -1.005 − 1.005 , connected by solid curves as guides, and the dotted horizontal lines are Eq. (19) . The standard errors are smaller than 0.01 for all points. (b) shows the spin-spin correlation function at Δ = − 1.02 \Delta=-1.02 Δ = − 1.02 for L = 16 , 32 , 128 L=16,32,128 L = 16 , 32 , 128 and Δ = − 1.005 \Delta=-1.005 Δ = − 1.005 for L = 32 , 64 , 128 L=32,64,128 L = 32 , 64 , 128 .
When Δ < − 1 \Delta<-1 Δ < − 1 , our sampling method reveals a saturation of the MRE beyond the sizes accessible to exact diagonalization. We obtain the ground state by density-matrix renormalization group (DMRG) [51 , 52 , 53 ] , project it onto the appropriate spin-flip eigenspace, and convert it into an MPS over the $2L modes [48 ] . As shown in Figure 2 (a), the MRE saturates between L = 32 L=32 L = 32 and 64 at Δ = − 1.02 \Delta=-1.02 Δ = − 1.02 and between L = 64 L=64 L = 64 and 128 at Δ = − 1.005 \Delta=-1.005 Δ = − 1.005 . This saturation coincides with the emergence of a domain-wall profile in the spin-spin correlation function ⟨ S 1 z S j z ⟩ \langle S^z_1 S^z_j\rangle ⟨ S 1 z S j z ⟩ ; see Figure 2 (b). Since this correlator is a fermionic four-point function, the MRE resolves a change in many-body correlations that is inaccessible to the covariance matrix.
To interpret the saturation, we use the exact domain-wall ground states of the XXZ chain with suitable boundary fields [54 , 55 ] . These fields select one of the two domain-wall orientations. When the wall is well separated from the boundaries, the end spins in each orientation are nearly fully polarized, and the corresponding boundary fields act as a constant energy shift. This motivates using an equal-weight superposition of the two orientations, in the appropriate spin-flip sector, as a reference state for the chain without boundary fields. With cosh η = ∣ Δ ∣ \cosh\eta=|\Delta| cosh η = ∣Δ∣ , the MRE of this superposition has the small-η \eta η expansion [48 ]
M 2 = 3 2 ln ( π / η ) + ln 4 − η / 2 + O ( η 2 ) . (19) M_2=\frac{3}{2}\ln(\pi/\eta)+\ln4-\eta/2+O(\eta^2). \tag*{(19)} M 2 = 2 3 ln ( π / η ) + ln 4 − η /2 + O ( η 2 ) . (19)
This L L L -independent prediction agrees with the observed plateaus, linking MRE saturation to domain-wall formation.
The cost of these calculations is notably modest (see the Supplemental Material [48 ] ); at Δ = − 1 \Delta=-1 Δ = − 1 , we confirmed that compressing the state at L = 64 L=64 L = 64 to D = 30 D=30 D = 30 leaves M 2 M_2 M 2 unchanged within the statistical error. When Δ < − 1 \Delta<-1 Δ < − 1 , the required bond dimension D D D stops growing once the MRE saturates. We also find that the required number of samples for fixed error scales as N ≃ e M 2 / ϵ M 2 N\simeq e^{M_2}/\epsilon_M^2 N ≃ e M 2 / ϵ M 2 . Consequently, it grows as L 3 / 2 L^{3/2} L 3/2 at Δ = − 1 \Delta=-1 Δ = − 1 , and the calculation for L = 128 L=128 L = 128 requires only about 1.4 × 10 7 1.4\times10^7 1.4 × 1 0 7 samples for ϵ M = 0.01 \epsilon_M=0.01 ϵ M = 0.01 . When Δ < − 1 \Delta<-1 Δ < − 1 , the required number of samples is an even smaller value owing to the saturation of the MRE (see the Supplemental Material [48 ] ).
Conclusion.— We have established a practical method for efficiently computing the fermionic non-Gaussianity of many-body states represented as MPSs. Our method enables a systematic study of many-body fermionic non-Gaussianity both in and out of equilibrium. For instance, the method can be used to determine the universal contribution to the MRE in critical ground states, which is fixed by the infrared boundary condition of the replicated conformal field theory [20 ] . For time-evolving states represented by MPSs, the same sampling procedure can track how non-Gaussian resources evolve after a quantum quench. Since the MRE is experimentally accessible via multiple copies of a state, numerical calculations can be directly compared with experimental data from fermionic quantum simulators, providing a benchmark for non-Gaussian resources realized in these platforms.
Acknowledgments
Acknowledgments.— R.M. and M.H. were supported by FoPM, WINGS Program, the University of Tokyo. The work of M.H. was also supported by JSPS KAKENHI Grant No. 26KJ0910. Y.A. acknowledges support from JST FOREST Program (Grant No. JPMJFR222U), JST CREST (Grant No. JPMJCR2312), and JST [Moonshot R&D] (Grant No. JPMJMS2567). The authors used ChatGPT (OpenAI), Codex (GPT-5.6-Sol and GPT-6-Astra, OpenAI), and Claude Code (Claude Opus 4.8, Opus 5, Opus 5.5, Fable 5, and Fable 5.1, Anthropic) for research and manuscript preparation. The authors checked all derivations, validated the sampling code against exact results, and revised AI-generated text. The authors take full responsibility for the paper.
End Matter
Derivation of Eq. (14). — We derive Eq. (14) by explicitly summing over the output occupations at the sites that have not yet been sampled. Define the product A > j x = A j + 1 x j + 1 A j + 2 x j + 2 ⋯ A n x n A^{x}_{>j}=A^{x_{j+1}}_{j+1}A^{x_{j+2}}_{j+2}\cdots A^{x_n}_n A > j x = A j + 1 x j + 1 A j + 2 x j + 2 ⋯ A n x n . For fixed input occupations x > j x_{>j} x > j and y > j y_{>j} y > j on sites j + 1 , j + 2 , … , n j+1,j+2,\ldots,n j + 1 , j + 2 , … , n , we define the partial contraction in which the prefix of copy B B B has parity p p p by
G p ( x > j , y > j ) = ( A > j x ) T B j ( p ) ( z ≤ j ) A > j y . (20) G_p(x_{>j},y_{>j})=(A^{x}_{>j})^{\mathsf{T}}B_j^{(p)}(z_{\leq j})A^{y}_{>j}. \tag*{(20)} G p ( x > j , y > j ) = ( A > j x ) T B j ( p ) ( z ≤ j ) A > j y . (20)
Splitting the amplitude at the bond after site j j j gives
Φ ( z ) = s ( a , b ) ∑ p = 0 1 ∑ x > j , y > j [ ∏ k = j + 1 n u z k , 2 x k + y k ( − 1 ) x k p k − 1 ] G p ( x > j , y > j ) . (21) \Phi(z)=s(a,b)\sum_{p=0}^{1}\sum_{x_{>j},y_{>j}}\left[\prod_{k=j+1}^{n}u_{z_k,2x_k+y_k}(-1)^{x_kp_{k-1}}\right]G_p(x_{>j},y_{>j}). \tag*{(21)} Φ ( z ) = s ( a , b ) p = 0 ∑ 1 x > j , y > j ∑ k = j + 1 ∏ n u z k , 2 x k + y k ( − 1 ) x k p k − 1 G p ( x > j , y > j ) . (21)
The local beam-splitter matrix obeys the following unitarity relation:
∑ z k = 0 3 u z k , 2 x k + y k u ‾ z k , 2 x k ′ + y k ′ = δ x k x k ′ δ y k y k ′ . (22) \sum_{z_k=0}^{3}u_{z_k,2x_k+y_k}\overline{u}_{z_k,2x'_k+y'_k}=\delta_{x_kx'_k}\delta_{y_ky'_k}. \tag*{(22)} z k = 0 ∑ 3 u z k , 2 x k + y k u z k , 2 x k ′ + y k ′ = δ x k x k ′ δ y k y k ′ . (22)
Substituting Eq. (21) into the definition of W j W_j W j and applying this relation gives the following expression:
W j ( z ≤ j ) = ∑ p , p ′ = 0 1 ∑ x > j , y > j ( − 1 ) ( p + p ′ ) ∑ k > j x k G p ( x > j , y > j ) G p ′ ( x > j , y > j ) ‾ . (23) W_j(z_{\leq j})=\sum_{p,p'=0}^{1}\sum_{x_{>j},y_{>j}}(-1)^{(p+p')\sum_{k>j}x_k}G_p(x_{>j},y_{>j})\overline{G_{p'}(x_{>j},y_{>j})}. \tag*{(23)} W j ( z ≤ j ) = p , p ′ = 0 ∑ 1 x > j , y > j ∑ ( − 1 ) ( p + p ′ ) ∑ k > j x k G p ( x > j , y > j ) G p ′ ( x > j , y > j ) . (23)
Since copy B B B has fixed total parity P P P , G p ( x > j , y > j ) G_p(x_{>j},y_{>j}) G p ( x > j , y > j ) can be nonzero only if
( p + ∑ k > j y k ) m o d 2 = P . (24) \left(p+\sum_{k>j}y_k\right)\bmod2=P. \tag*{(24)} p + k > j ∑ y k mod 2 = P . (24)
This condition uniquely determines p p p for each suffix configuration y > j y_{>j} y > j , so the product of G p G_p G p and G p ′ G_{p'} G p ′ vanishes whenever p ≠ p ′ p\ne p' p = p ′ . For the remaining diagonal terms with p = p ′ p=p' p = p ′ , the sign in Eq. (23) equals unity, and repeated application of the right-canonical condition gives
∑ x > j A > j x ( A > j x ) † = I D j . (25) \sum_{x_{>j}}A^{x}_{>j}(A^{x}_{>j})^\dagger=I_{D_j}. \tag*{(25)} x > j ∑ A > j x ( A > j x ) † = I D j . (25)
Using this identity to evaluate the sums over x > j x_{>j} x > j and y > j y_{>j} y > j separately yields
∑ x > j , y > j ∣ G p ( x > j , y > j ) ∣ 2 = Tr [ B j ( p ) ( z ≤ j ) B j ( p ) ( z ≤ j ) † ] = ∥ B j ( p ) ( z ≤ j ) ∥ F 2 . (26) \begin{aligned}
\sum_{x_{>j},y_{>j}}\left|G_p(x_{>j},y_{>j})\right|^2=\operatorname{Tr}\left[B_j^{(p)}(z_{\leq j})B_j^{(p)}(z_{\leq j})^\dagger\right] \\
&=\left\|B_j^{(p)}(z_{\leq j})\right\|_{\mathrm{F}}^2. \tag*{(26)}
\end{aligned} x > j , y > j ∑ ∣ G p ( x > j , y > j ) ∣ 2 = Tr [ B j ( p ) ( z ≤ j ) B j ( p ) ( z ≤ j ) † ] = B j ( p ) ( z ≤ j ) F 2 . (26)
Finally, summing over the two diagonal parity sectors proves Eq. (14) .
U ( 1 ) U(1) U ( 1 ) -resolved boundary recursion.— Particle-number conservation enables a more efficient sampling sweep. We consider an input state satisfying ψ ( x ) = 0 \psi(x)=0 ψ ( x ) = 0 unless ∑ j = 1 n x j = N \sum_{j=1}^{n}x_j=N ∑ j = 1 n x j = N and assume that its MPS explicitly resolves the corresponding U ( 1 ) U(1) U ( 1 ) symmetry. The total input parity is P = N m o d 2 P=N\bmod2 P = N mod 2 . To make the charge structure explicit, we decompose the virtual bond space after site j j j as
C D j = ⨁ q V j , q , \mathcal{C}^{D_j}=\bigoplus_q\mathcal{V}_{j,q}, C D j = q ⨁ V j , q ,
d j ( q ) = dim V j , q . (27) d_j(q)=\dim\mathcal{V}_{j,q}. \tag*{(27)} d j ( q ) = dim V j , q . (27)
where q q q counts the particles in the first j j j sites. With the boundary sectors V 0 , 0 = C \mathcal{V}_{0,0}=\mathbb{C} V 0 , 0 = C and V n , N = C \mathcal{V}_{n,N}=\mathbb{C} V n , N = C , the U ( 1 ) U(1) U ( 1 ) selection rule restricts each local tensor to blocks that connect left charge q q q to right charge q + x q+x q + x :
A j x ( q ) ∈ C d j − 1 ( q ) × d j ( q + x ) . (28) A_j^x(q)\in\mathbb{C}^{d_{j-1}(q)\times d_j(q+x)}. \tag*{(28)} A j x ( q ) ∈ C d j − 1 ( q ) × d j ( q + x ) . (28)
For a given prefix z ≤ j z_{\leq j} z ≤ j , local particle-number conservation restricts the allowed charge blocks of the boundary matrix. We denote the number of particles in the prefix by
K j = ∑ i = 1 j ( a i + b i ) , K 0 = 0 (29) K_j=\sum_{i=1}^{j}(a_i+b_i),\qquad K_0=0 \tag*{(29)} K j = i = 1 ∑ j ( a i + b i ) , K 0 = 0 (29)
and write B j [ q 1 , q 2 ] ( z ≤ j ) \mathcal{B}_j^{[q_1,q_2]}(z_{\leq j}) B j [ q 1 , q 2 ] ( z ≤ j ) for the block of B j ( q 2 m o d 2 ) ( z ≤ j ) \mathcal{B}_j^{(q_2\bmod2)}(z_{\leq j}) B j ( q 2 mod 2 ) ( z ≤ j ) with row charge q 1 q_1 q 1 and column charge q 2 q_2 q 2 . Only blocks satisfying q 1 + q 2 = K j q_1+q_2=K_j q 1 + q 2 = K j can be nonzero. Starting from B 0 [ 0 , 0 ] = ( 1 ) \mathcal{B}_0^{[0,0]}=(1) B 0 [ 0 , 0 ] = ( 1 ) , Eq. (13) reduces to the block recursion
B j [ Q 1 , Q 2 ] ( z ≤ j ) = ∑ q 1 + q 2 = K j − 1 x , y ∈ { 0 , 1 } Q 1 = q 1 + x , Q 2 = q 2 + y u z j , 2 x + y ( − 1 ) x ( q 2 m o d 2 ) [ A j x ( q 1 ) ] T B j − 1 [ q 1 , q 2 ] ( z < j ) A j y ( q 2 ) . (30) \mathcal{B}_j^{[Q_1,Q_2]}(z_{\leq j})=
\sum_{\substack{q_1+q_2=K_{j-1}\\x,y\in\{0,1\}\\Q_1=q_1+x,\ Q_2=q_2+y}}
u_{z_j,2x+y}(-1)^{x(q_2\bmod2)}
\left[A_j^x(q_1)\right]^{\mathsf{T}}
\mathcal{B}_{j-1}^{[q_1,q_2]}(z_{<j})A_j^y(q_2). \tag*{(30)} B j [ Q 1 , Q 2 ] ( z ≤ j ) = q 1 + q 2 = K j − 1 x , y ∈ { 0 , 1 } Q 1 = q 1 + x , Q 2 = q 2 + y ∑ u z j , 2 x + y ( − 1 ) x ( q 2 mod 2 ) [ A j x ( q 1 ) ] T B j − 1 [ q 1 , q 2 ] ( z < j ) A j y ( q 2 ) . (30)
Here, q 2 m o d 2 q_2\bmod2 q 2 mod 2 is precisely the prefix parity p j − 1 p_{j-1} p j − 1 of copy B, so no separate parity label is needed. The beam splitter conserves the particle number at each site, and every nonzero matrix element of u u u therefore satisfies x + y = a j + b j x+y=a_j+b_j x + y = a j + b j . Together with q 1 + q 2 = K j − 1 q_1+q_2=K_{j-1} q 1 + q 2 = K j − 1 , this relation ensures that every updated block obeys Q 1 + Q 2 = K j Q_1+Q_2=K_j Q 1 + Q 2 = K j .
The perfect-sampling sweep retains the same probabilistic structure when expressed in terms of these symmetry-allowed charge blocks. Because distinct charge blocks occupy orthogonal subspaces, Eq. (14) becomes
W j ( z ≤ j ) = ∑ q 1 + q 2 = K j ∥ B j [ q 1 , q 2 ] ( z ≤ j ) ∥ F 2 . (31) W_j(z_{\leq j})=\sum_{q_1+q_2=K_j}\left\|\mathcal{B}_j^{[q_1,q_2]}(z_{\leq j})\right\|_{\mathrm{F}}^2. \tag*{(31)} W j ( z ≤ j ) = q 1 + q 2 = K j ∑ B j [ q 1 , q 2 ] ( z ≤ j ) F 2 . (31)
For a trial value z = 2 a + b z=2a+b z = 2 a + b , the candidate boundary lies in the sector K j ( z ) = K j − 1 + a + b K_j(z)=K_{j-1}+a+b K j ( z ) = K j − 1 + a + b . After z j z_j z j is sampled, the charge blocks for the resulting prefix z ≤ j z_{\leq j} z ≤ j are normalized by
B ^ j [ q 1 , q 2 ] ( z ≤ j ) = B j [ q 1 , q 2 ] ( z ≤ j ) W j ( z ≤ j ) . (32) \widehat{\mathcal{B}}_j^{[q_1,q_2]}(z_{\leq j})=
\frac{\mathcal{B}_j^{[q_1,q_2]}(z_{\leq j})}{\sqrt{W_j(z_{\leq j})}}. \tag*{(32)} B j [ q 1 , q 2 ] ( z ≤ j ) = W j ( z ≤ j ) B j [ q 1 , q 2 ] ( z ≤ j ) . (32)
The update of λ j \lambda_j λ j and the deterministic amplitude sweep then proceed exactly as in the dense formulation. At the right boundary, the fixed charge of each copy leaves only the scalar block with q 1 = q 2 = N q_1=q_2=N q 1 = q 2 = N , and Eq. (16) reduces to
Φ ( a , b ) = s ( a , b ) e λ n [ B ^ n [ N , N ] ( z ) ] 1 , 1 . (33) \Phi(a,b)=s(a,b)e^{\lambda_n}\left[\widehat{\mathcal{B}}_n^{[N,N]}(z)\right]_{1,1}. \tag*{(33)} Φ ( a , b ) = s ( a , b ) e λ n [ B n [ N , N ] ( z ) ] 1 , 1 . (33)
Restricting the sweep to symmetry-allowed blocks can substantially reduce both the runtime and the working memory in practice. For a prefix with charge K j K_j K j , the number of boundary elements that must be stored is
D j ( K j ) = ∑ q 1 + q 2 = K j d j ( q 1 ) d j ( q 2 ) , (34) D_j(K_j)=\sum_{q_1+q_2=K_j}d_j(q_1)d_j(q_2), \tag*{(34)} D j ( K j ) = q 1 + q 2 = K j ∑ d j ( q 1 ) d j ( q 2 ) , (34)
rather than the 2 D j 2 2D_j^2 2 D j 2 elements of two dense parity boundaries. The matrix multiplications in Eq. (30) involve only charge-compatible blocks and can therefore be less expensive than the corresponding dense matrix multiplications. The worst-case asymptotic scaling in terms of the total bond dimension remains O ( n D 3 ) O(nD^3) O ( n D 3 ) in time and O ( D 2 ) O(D^2) O ( D 2 ) in working memory per sweep, but the smaller charge blocks can make the method substantially more efficient in practice. Particle-number conservation provides a further computational saving by allowing the sweeps for Φ ( a ′ , b ) \Phi(a',b) Φ ( a ′ , b ) and Φ ( a , b ′ ) \Phi(a,b') Φ ( a , b ′ ) to be skipped in some samples. Each sample contains 2 N 2N 2 N particles in total, so if the two samples contain different numbers of particles in output A A A , these crossed amplitudes vanish, yielding h ( X ) = 0 h(X)=0 h ( X ) = 0 without either sweep.
Ground-state properties of the spinful XXZ chain
This section collects the properties of the ground state of Eq. (17) at N ↑ = L / 2 N_{\uparrow}=L/2 N ↑ = L /2 that hold for every Δ \Delta Δ , namely the uniqueness, the spin-flip symmetry, and the covariance matrix. As in the main text, all states in this section lie in the subspace with one fermion per site.
We first show that the ground state of H H H at fixed N ↑ N_{\uparrow} N ↑ is unique for every Δ \Delta Δ , as stated in the main text. We use the sublattice rotation U = exp ( i π ∑ j : e v e n n j ↑ ) U=\exp\left(i\pi\sum_{j:\mathrm{even}}n_{j\uparrow}\right) U = exp ( iπ ∑ j : even n j ↑ ) , which rotates the spins on the even sites by π \pi π about the z z z axis up to a constant phase. It maps c j ↑ c_{j\uparrow} c j ↑ to − c j ↑ -c_{j\uparrow} − c j ↑ on the even sites and is therefore a number-conserving Gaussian unitary. Since U S j ± U † = − S j ± US_{j}^{\pm}U^{\dagger}=-S_{j}^{\pm} U S j ± U † = − S j ± on the even sites and every bond contains one even site, U U U reverses the sign of S j x S j + 1 x + S j y S j + 1 y S_{j}^{x}S_{j+1}^{x}+S_{j}^{y}S_{j+1}^{y} S j x S j + 1 x + S j y S j + 1 y ,
U H U † = ∑ j = 1 L − 1 ( − S j x S j + 1 x − S j y S j + 1 y + Δ S j z S j + 1 z ) . (35) UHU^{\dagger}=\sum_{j=1}^{L-1}\left(-S_{j}^{x}S_{j+1}^{x}-S_{j}^{y}S_{j+1}^{y}+\Delta S_{j}^{z}S_{j+1}^{z}\right). \tag*{(35)} U H U † = j = 1 ∑ L − 1 ( − S j x S j + 1 x − S j y S j + 1 y + Δ S j z S j + 1 z ) . (35)
The off-diagonal elements of U H U † UHU^{\dagger} U H U † in the S z S^{z} S z basis are thus nonpositive, while Δ \Delta Δ enters only the diagonal elements. Each off-diagonal element exchanges antiparallel spins on neighboring sites, and a sequence of such exchanges connects every pair of configurations with the same N ↑ N_{\uparrow} N ↑ . The Perron–Frobenius theorem then makes the ground state of U H U † UHU^{\dagger} U H U † at fixed N ↑ N_{\uparrow} N ↑ unique with positive amplitudes in the S z S^{z} S z basis. Since U U U is unitary, the ground state of H H H at fixed N ↑ N_{\uparrow} N ↑ is unique as well.
Using this uniqueness, we next show that the ground state ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ of H H H at N ↑ = L / 2 N_{\uparrow}=L/2 N ↑ = L /2 is an eigenstate of the spin flip R = ∏ j = 1 L ( c j ↑ † c j ↓ + c j ↓ † c j ↑ ) \mathcal{R}=\prod_{j=1}^{L}(c_{j\uparrow}^{\dagger}c_{j\downarrow}+c_{j\downarrow}^{\dagger}c_{j\uparrow}) R = ∏ j = 1 L ( c j ↑ † c j ↓ + c j ↓ † c j ↑ ) with eigenvalue ( − 1 ) L / 2 (-1)^{L/2} ( − 1 ) L /2 . We choose the phase of ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ so that U ∣ ψ ⟩ U|\psi\rangle U ∣ ψ ⟩ has positive amplitudes. The operator R \mathcal{R} R maps ( S j x , S j y , S j z ) (S_{j}^{x},S_{j}^{y},S_{j}^{z}) ( S j x , S j y , S j z ) to ( S j x , − S j y , − S j z ) (S_{j}^{x},-S_{j}^{y},-S_{j}^{z}) ( S j x , − S j y , − S j z ) and thus commutes with both H H H and U H U † UHU^{\dagger} U H U † . It maps the sector N ↑ = L / 2 N_{\uparrow}=L/2 N ↑ = L /2 onto itself and permutes the S z S^{z} S z basis states without signs. The state R U ∣ ψ ⟩ \mathcal{R}U|\psi\rangle R U ∣ ψ ⟩ is therefore a ground state of U H U † UHU^{\dagger} U H U † with positive amplitudes, and the uniqueness gives R U ∣ ψ ⟩ = U ∣ ψ ⟩ \mathcal{R}U|\psi\rangle=U|\psi\rangle R U ∣ ψ ⟩ = U ∣ ψ ⟩ . On the states with one fermion per site, n j ↓ = 1 − n j ↑ n_{j\downarrow}=1-n_{j\uparrow} n j ↓ = 1 − n j ↑ gives R U R = ( − 1 ) L / 2 U \mathcal{R}U\mathcal{R}=(-1)^{L/2}U R U R = ( − 1 ) L /2 U , since there are L / 2 L/2 L /2 even sites. Combining these relations with U 2 = I U^{2}=I U 2 = I , we obtain
R ∣ ψ ⟩ = R U U ∣ ψ ⟩ = ( − 1 ) L / 2 U R U ∣ ψ ⟩ = ( − 1 ) L / 2 ∣ ψ ⟩ . (36) \mathcal{R}|\psi\rangle=\mathcal{R}UU|\psi\rangle=(-1)^{L/2}U\mathcal{R}U|\psi\rangle=(-1)^{L/2}|\psi\rangle. \tag*{(36)} R ∣ ψ ⟩ = R U U ∣ ψ ⟩ = ( − 1 ) L /2 U R U ∣ ψ ⟩ = ( − 1 ) L /2 ∣ ψ ⟩ . (36)
Using this spin-flip symmetry, we finally derive the value of ⟨ c i σ † c j σ ′ ⟩ \langle c_{i\sigma}^{\dagger}c_{j\sigma'}\rangle ⟨ c iσ † c j σ ′ ⟩ stated in the main text and show that the Majorana covariance matrix of ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ vanishes for every Δ \Delta Δ . We write C i j = ⟨ c i † c j ⟩ C_{ij}=\langle c_{i}^{\dagger}c_{j}\rangle C ij = ⟨ c i † c j ⟩ and κ i j = ⟨ c i c j ⟩ \kappa_{ij}=\langle c_{i}c_{j}\rangle κ ij = ⟨ c i c j ⟩ for the correlation matrices in the mode basis and Γ μ ν = i 2 ⟨ [ γ μ , γ ν ] ⟩ \Gamma_{\mu\nu}=\frac{i}{2}\langle[\gamma_{\mu},\gamma_{\nu}]\rangle Γ μν = 2 i ⟨[ γ μ , γ ν ]⟩ for the Majorana covariance matrix. The fermionic antiflatness of [29 ] is F k = n − 1 2 Tr [ ( Γ T Γ ) k ] \mathcal{F}_{k}=n-\frac{1}{2}\operatorname{Tr}\left[(\Gamma^{T}\Gamma)^{k}\right] F k = n − 2 1 Tr [ ( Γ T Γ ) k ] for n n n modes, which vanishes for Gaussian states and takes its maximal value n n n when Γ = 0 \Gamma=0 Γ = 0 . The argument below uses only the fact that the state has one fermion per site with N ↑ = L / 2 N_{\uparrow}=L/2 N ↑ = L /2 and is an eigenstate of R \mathcal{R} R . The correlation ⟨ c i σ † c j σ ′ ⟩ \langle c_{i\sigma}^{\dagger}c_{j\sigma'}\rangle ⟨ c iσ † c j σ ′ ⟩ with i ≠ j i\ne j i = j is the expectation value of an operator that changes the particle numbers of two sites and therefore vanishes. The on-site correlation ⟨ c j ↑ † c j ↓ ⟩ = ⟨ S j + ⟩ \langle c_{j\uparrow}^{\dagger}c_{j\downarrow}\rangle=\langle S_{j}^{+}\rangle ⟨ c j ↑ † c j ↓ ⟩ = ⟨ S j + ⟩ changes N ↑ N_{\uparrow} N ↑ and vanishes as well. The spin-flip symmetry gives ⟨ n j ↑ ⟩ = ⟨ n j ↓ ⟩ = 1 / 2 \langle n_{j\uparrow}\rangle=\langle n_{j\downarrow}\rangle=1/2 ⟨ n j ↑ ⟩ = ⟨ n j ↓ ⟩ = 1/2 , and particle-number conservation gives κ = 0 \kappa=0 κ = 0 . Hence
C = 1 2 I 2 L , κ = 0 , Γ = 0 , F k = 2 L (37) C=\frac{1}{2}I_{2L},\qquad\kappa=0,\qquad\Gamma=0,\qquad\mathcal{F}_{k}=2L \tag*{(37)} C = 2 1 I 2 L , κ = 0 , Γ = 0 , F k = 2 L (37)
independently of Δ \Delta Δ and L L L .
Analytical results for the MRE in the XXZ chain
This section derives Eqs. (18) and (19) of the main text. Section SII A obtains the exact MRE of the ground state at Δ = − 1 \Delta=-1 Δ = − 1 for every L L L . Section SII B derives the asymptotic form at Δ = − 1 \Delta=-1 Δ = − 1 and Δ < − 1 \Delta<-1 Δ < − 1 . Since U U U is a Gaussian unitary, we perform all calculations with the rotated Hamiltonian U H U † UHU^{\dagger} U H U † of Eq. (35) .
Exact MRE at Δ = − 1 \Delta=-1 Δ = − 1
At Δ = − 1 \Delta=-1 Δ = − 1 , the rotated Hamiltonian U H U † = − ∑ j S j ⋅ S j + 1 UHU^{\dagger}=-\sum_{j} \mathbf{S}_{j}\cdot\mathbf{S}_{j+1} U H U † = − ∑ j S j ⋅ S j + 1 is the ferromagnetic Heisenberg chain, and the state with all spins up attains the lowest eigenvalue − 1 / 4 -1/4 − 1/4 of every term. The total lowering operator commutes with this Hamiltonian, so Dicke state [50 ]
∣ D L ⟩ = ( L L / 2 ) − 1 / 2 ∑ ∣ s ∣ = L / 2 ∣ s ⟩ (38) |D_L\rangle= \binom{L}{L/2}^{-1/2}\sum_{|s|=L/2}|s\rangle \tag*{(38)} ∣ D L ⟩ = ( L /2 L ) − 1/2 ∣ s ∣ = L /2 ∑ ∣ s ⟩ (38)
obtained by applying it L / 2 L/2 L /2 times, is also a ground state. Here ∣ s ⟩ |s\rangle ∣ s ⟩ is the state with one fermion per site in the spin configuration s s s , and ∣ s ∣ |s| ∣ s ∣ is its number of up spins. By the uniqueness shown in Sec. SI, ∣ D L ⟩ |D_L\rangle ∣ D L ⟩ is the unique ground state at N ↑ = L / 2 N_{\uparrow}=L/2 N ↑ = L /2 .
We regard the amplitudes Φ ( a , b ) \Phi(a,b) Φ ( a , b ) of the main text as a matrix Φ \Phi Φ with rows a a a and columns b b b . Since C ( ρ ) = Φ Φ † C(\rho)=\Phi\Phi^\dagger C ( ρ ) = Φ Φ † , the purity ν 2 = Tr [ ( Φ Φ † ) 2 ] \nu_2=\operatorname{Tr}\left[(\Phi\Phi^\dagger)^2\right] ν 2 = Tr [ ( Φ Φ † ) 2 ] is the sum of the fourth powers of the singular values of Φ \Phi Φ . As shown below, Φ \Phi Φ splits into blocks labeled by the numbers of fermions at each site and a magnetization, and the singular values of each block depend only on the magnitude and the z z z component of the total spin.
The beam splitter U B S U_{\mathrm{BS}} U BS mixes each mode only with the same mode of the other copy and therefore acts site by site. We label the output at site j j j by the pair ( a j , b j ) (a_j,b_j) ( a j , b j ) of the states of copies A A A and B B B . Here a j , b j ∈ { 0 , ↑ , ↓ , ↑ ↓ } a_j,b_j\in\{0,\uparrow,\downarrow,\uparrow\downarrow\} a j , b j ∈ { 0 , ↑ , ↓ , ↑↓ } , where 0 0 0 and ↑ ↓ \uparrow\downarrow ↑↓ denote an empty and a doubly occupied site. We write ∣ a , b ⟩ |a,b\rangle ∣ a , b ⟩ for the state of one site with the creation operators ordered as c A ↑ † , c A ↓ † , c B ↑ † , c B ↓ † c^\dagger_{A\uparrow},c^\dagger_{A\downarrow},c^\dagger_{B\uparrow},c^\dagger_{B\downarrow} c A ↑ † , c A ↓ † , c B ↑ † , c B ↓ † . From U B S c A σ † U B S † = ( c A σ † − c B σ † ) / 2 U_{\mathrm{BS}}c^\dagger_{A\sigma}U^\dagger_{\mathrm{BS}}=(c^\dagger_{A\sigma}-c^\dagger_{B\sigma})/\sqrt{2} U BS c A σ † U BS † = ( c A σ † − c B σ † ) / 2 and U B S c B σ † U B S † = ( c A σ † + c B σ † ) / 2 U_{\mathrm{BS}}c^\dagger_{B\sigma}U^\dagger_{\mathrm{BS}}=(c^\dagger_{A\sigma}+c^\dagger_{B\sigma})/\sqrt{2} U BS c B σ † U BS † = ( c A σ † + c B σ † ) / 2 , we obtain
U B S ∣ ↑ , ↑ ⟩ = ∣ ↑ , ↑ ⟩ , U B S ∣ ↓ , ↓ ⟩ = ∣ ↓ , ↓ ⟩ , U B S ∣ ↑ , ↓ ⟩ = 1 2 ( ∣ ↑ ↓ , 0 ⟩ + ∣ ↑ , ↓ ⟩ + ∣ ↓ , ↑ ⟩ − ∣ 0 , ↑ ↓ ⟩ ) , U B S ∣ ↓ , ↑ ⟩ = 1 2 ( − ∣ ↑ ↓ , 0 ⟩ + ∣ ↑ , ↓ ⟩ + ∣ ↓ , ↑ ⟩ + ∣ 0 , ↑ ↓ ⟩ ) . (39) \begin{aligned}
U_{\mathrm{BS}}|\uparrow,\uparrow\rangle&= |\uparrow,\uparrow\rangle,\qquad U_{\mathrm{BS}}|\downarrow,\downarrow\rangle= |\downarrow,\downarrow\rangle,\\
U_{\mathrm{BS}}|\uparrow,\downarrow\rangle&= \frac{1}{2}\left(|\uparrow\downarrow,0\rangle+|\uparrow,\downarrow\rangle+|\downarrow,\uparrow\rangle-|0,\uparrow\downarrow\rangle\right),\\
U_{\mathrm{BS}}|\downarrow,\uparrow\rangle&= \frac{1}{2}\left(-|\uparrow\downarrow,0\rangle+|\uparrow,\downarrow\rangle+|\downarrow,\uparrow\rangle+|0,\uparrow\downarrow\rangle\right). \tag*{(39)}
\end{aligned} U BS ∣ ↑ , ↑ ⟩ U BS ∣ ↑ , ↓ ⟩ U BS ∣ ↓ , ↑ ⟩ = ∣ ↑ , ↑ ⟩ , U BS ∣ ↓ , ↓ ⟩ = ∣ ↓ , ↓ ⟩ , = 2 1 ( ∣ ↑↓ , 0 ⟩ + ∣ ↑ , ↓ ⟩ + ∣ ↓ , ↑ ⟩ − ∣0 , ↑↓ ⟩ ) , = 2 1 ( − ∣ ↑↓ , 0 ⟩ + ∣ ↑ , ↓ ⟩ + ∣ ↓ , ↑ ⟩ + ∣0 , ↑↓ ⟩ ) . (39)
To apply this relation at every site, we reorder the creation operators, which are ordered copy by copy, so that the four modes of each site are adjacent. The reorderings of the input and the output give the signs ( − 1 ) L ( L − 1 ) / 2 (-1)^{L(L-1)/2} ( − 1 ) L ( L − 1 ) /2 and ( − 1 ) ∑ j < j ′ n ( b j ) n ( a j ′ ) (-1)^{\sum_{j<j'}n(b_j)n(a_{j'})} ( − 1 ) ∑ j < j ′ n ( b j ) n ( a j ′ ) , where n ( a ) n(a) n ( a ) is the number of fermions in the state a a a . For an input state ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ with one fermion per site, we thus obtain
Φ ( a , b ) = ( − 1 ) L ( L − 1 ) / 2 ( − 1 ) ∑ j < j ′ n ( b j ) n ( a j ′ ) ∑ s 1 , s 2 ψ ( s 1 ) ψ ( s 2 ) ∏ j = 1 L ⟨ a j , b j ∣ U B S ∣ s 1 j , s 2 j ⟩ (40) \Phi(a,b)=(-1)^{L(L-1)/2}(-1)^{\sum_{j<j'}n(b_j)n(a_{j'})}\sum_{s_1,s_2}\psi(s_1)\psi(s_2)\prod_{j=1}^{L}\langle a_j,b_j|U_{\mathrm{BS}}|s_{1j},s_{2j}\rangle \tag*{(40)} Φ ( a , b ) = ( − 1 ) L ( L − 1 ) /2 ( − 1 ) ∑ j < j ′ n ( b j ) n ( a j ′ ) s 1 , s 2 ∑ ψ ( s 1 ) ψ ( s 2 ) j = 1 ∏ L ⟨ a j , b j ∣ U BS ∣ s 1 j , s 2 j ⟩ (40)
where ψ ( s ) = ⟨ s ∣ ψ ⟩ \psi(s)=\langle s|\psi\rangle ψ ( s ) = ⟨ s ∣ ψ ⟩ , s 1 s_1 s 1 and s 2 s_2 s 2 are the input spin configurations of copies A A A and B B B , and s i j s_{ij} s ij is the spin of s i s_i s i at site j j j . The signs do not depend on the spin orientations. The beam splitter conserves the number of fermions at each site and the total number of up spins of the two copies. For the input ∣ D L ⟩ |D_L\rangle ∣ D L ⟩ , Φ ( a , b ) \Phi(a,b) Φ ( a , b ) is therefore nonzero only if n ( a j ) + n ( b j ) = 2 n(a_j)+n(b_j)=2 n ( a j ) + n ( b j ) = 2 at every site and the output contains L L L up spins in total. Here a doubly occupied site counts as containing one up spin.
Let k k k be the number of sites at which copy A A A holds one fermion. At each of the other L − k L-k L − k sites, one copy is doubly occupied and the other is empty, so the site contains one up spin. If copy A A A holds k / 2 + m k/2+m k /2 + m up spins at the k k k sites, copy B B B therefore holds k / 2 − m k/2-m k /2 − m up spins there. The rows and columns with fixed numbers of fermions at each site and fixed m m m form a block of Φ \Phi Φ , and the reordering sign is constant within the block. The rows of the block are the spin configurations of copy A A A at the k k k sites, and the columns are those of copy B B B . If we label each column by the configuration with all spins of copy B B B flipped, both rows and columns become configurations of k k k spins with k / 2 + m k/2+m k /2 + m up spins (Figure S1 ). We hereafter regard each block as a matrix on the state space of these k k k spins 1 / 2 1/2 1/2 .
Figure S1. Example of an entry of Φ \Phi Φ for L = 6 L=6 L = 6 . At the gray sites, copy A A A is doubly occupied or empty, and at the other k = 4 k=4 k = 4 sites each copy holds one fermion. The row configuration is ( ↑ , ↓ , ↑ , ↓ ) (\uparrow,\downarrow,\uparrow,\downarrow) ( ↑ , ↓ , ↑ , ↓ ) of copy A A A , and the column configuration is ( ↑ , ↑ , ↓ , ↓ ) (\uparrow,\uparrow,\downarrow,\downarrow) ( ↑ , ↑ , ↓ , ↓ ) of copy B B B after flipping, both with two up spins (m = 0 m=0 m = 0 ). The bottom row shows the δ \delta δ -dependent parts of the factors in Eq. (S10). At the k k k sites, they are cos δ \cos\delta cos δ when the spins of the row and the column are equal and 1 1 1 when they differ.
To find the entries of the blocks, we write ∣ D L ⟩ |D_L\rangle ∣ D L ⟩ as a projected product state. The state ∣ D L ⟩ |D_L\rangle ∣ D L ⟩ is the projection onto N ↑ = L / 2 N_{\uparrow}=L/2 N ↑ = L /2 of the product state with all spins along the x x x direction, and writing the projection as an integral over a phase gives
∣ D L ⟩ = ( L L / 2 ) − 1 / 2 ∫ 0 2 π d θ 2 π e − i L θ / 2 ⨂ j = 1 L ( ∣ ↓ ⟩ + e i θ ∣ ↑ ⟩ ) . (41) |D_L\rangle=\binom{L}{L/2}^{-1/2}\int_{0}^{2\pi}\frac{d\theta}{2\pi}e^{-iL\theta/2}\bigotimes_{j=1}^{L}\left(|\downarrow\rangle+e^{i\theta}|\uparrow\rangle\right). \tag*{(41)} ∣ D L ⟩ = ( L /2 L ) − 1/2 ∫ 0 2 π 2 π d θ e − i L θ /2 j = 1 ⨂ L ( ∣ ↓ ⟩ + e i θ ∣ ↑ ⟩ ) . (41)
Indeed, the coefficient of ∣ s ⟩ |s\rangle ∣ s ⟩ in the expanded product is e i θ ∣ s ∣ e^{i\theta|s|} e i θ ∣ s ∣ , and the integral over θ \theta θ keeps only the terms with ∣ s ∣ = L / 2 |s|=L/2 ∣ s ∣ = L /2 . For the two copies, we use this representation with the phases θ + δ \theta+\delta θ + δ and θ − δ \theta-\delta θ − δ and write
∣ D L ⟩ A ∣ D L ⟩ B = ( L L / 2 ) − 1 ∫ 0 2 π d θ 2 π ∫ 0 2 π d δ 2 π e − i L θ ⨂ j = 1 L ( ∣ ↓ ⟩ + e i ( θ + δ ) ∣ ↑ ⟩ ) A ⨂ j = 1 L ( ∣ ↓ ⟩ + e i ( θ − δ ) ∣ ↑ ⟩ ) B . (42) |D_L\rangle_A|D_L\rangle_B=\binom{L}{L/2}^{-1}\int_{0}^{2\pi}\frac{d\theta}{2\pi}\int_{0}^{2\pi}\frac{d\delta}{2\pi}e^{-iL\theta}\bigotimes_{j=1}^{L}\left(|\downarrow\rangle+e^{i(\theta+\delta)}|\uparrow\rangle\right)_A\bigotimes_{j=1}^{L}\left(|\downarrow\rangle+e^{i(\theta-\delta)}|\uparrow\rangle\right)_B. \tag*{(42)} ∣ D L ⟩ A ∣ D L ⟩ B = ( L /2 L ) − 1 ∫ 0 2 π 2 π d θ ∫ 0 2 π 2 π d δ e − i L θ j = 1 ⨂ L ( ∣ ↓ ⟩ + e i ( θ + δ ) ∣ ↑ ⟩ ) A j = 1 ⨂ L ( ∣ ↓ ⟩ + e i ( θ − δ ) ∣ ↑ ⟩ ) B . (42)
The integral over θ \theta θ restricts the sum of the numbers of up spins of the two copies to L L L , and the integral over δ \delta δ restricts their difference to 0 0 0 , so this indeed gives ∣ D L ⟩ A ∣ D L ⟩ B |D_L\rangle_A|D_L\rangle_B ∣ D L ⟩ A ∣ D L ⟩ B . When this representation is inserted into Eq. (40) , the sums over s 1 s_1 s 1 and s 2 s_2 s 2 factorize over sites, and we obtain
Φ ( a , b ) = ± ( L L / 2 ) − 1 ∫ 0 2 π d θ 2 π ∫ 0 2 π d δ 2 π e − i L θ ∏ j = 1 L f a j b j ( θ , δ ) . (43) \Phi(a,b)=\pm\binom{L}{L/2}^{-1}\int_{0}^{2\pi}\frac{d\theta}{2\pi}\int_{0}^{2\pi}\frac{d\delta}{2\pi}e^{-iL\theta}\prod_{j=1}^{L}f_{a_jb_j}(\theta,\delta). \tag*{(43)} Φ ( a , b ) = ± ( L /2 L ) − 1 ∫ 0 2 π 2 π d θ ∫ 0 2 π 2 π d δ e − i L θ j = 1 ∏ L f a j b j ( θ , δ ) . (43)
Here ± \pm ± denotes the sign in Eq. (40) , and f a j b j ( θ , δ ) = ⟨ a j , b j ∣ U B S ( ∣ ↓ , ↓ ⟩ + e i ( θ + δ ) ∣ ↑ , ↓ ⟩ + e i ( θ − δ ) ∣ ↓ , ↑ ⟩ + e 2 i θ ∣ ↑ , ↑ ⟩ ) f_{a_jb_j}(\theta,\delta)=\langle a_j,b_j|U_{\mathrm{BS}}(|\downarrow,\downarrow\rangle+e^{i(\theta+\delta)}|\uparrow,\downarrow\rangle+e^{i(\theta-\delta)}|\downarrow,\uparrow\rangle+e^{2i\theta}|\uparrow,\uparrow\rangle) f a j b j ( θ , δ ) = ⟨ a j , b j ∣ U BS ( ∣ ↓ , ↓ ⟩ + e i ( θ + δ ) ∣ ↑ , ↓ ⟩ + e i ( θ − δ ) ∣ ↓ , ↑ ⟩ + e 2 i θ ∣ ↑ , ↑ ⟩) is the factor of site j j j . Applying Eq. (39) to this input gives
For example, the factor of ( ↑ , ↓ ) (\uparrow,\downarrow) ( ↑ , ↓ ) is the sum [ e i ( θ + δ ) + e i ( θ − δ ) ] / 2 = e i θ cos δ [e^{i(\theta+\delta)}+e^{i(\theta-\delta)}]/2=e^{i\theta}\cos\delta [ e i ( θ + δ ) + e i ( θ − δ ) ] /2 = e i θ cos δ of the contributions from the inputs ∣ ↑ , ↓ ⟩ |\uparrow,\downarrow\rangle ∣ ↑ , ↓ ⟩ and ∣ ↓ , ↑ ⟩ |\downarrow,\uparrow\rangle ∣ ↓ , ↑ ⟩ . Every factor contains e i θ e^{i\theta} e i θ to the power of the number of up spins at the site. Since an entry of a block has L L L up spins in total, these powers cancel e − i L θ e^{-iL\theta} e − i L θ , and the integral over θ \theta θ gives one. What remains is the integral over δ \delta δ of the δ \delta δ -dependent parts of the factors in Eq. (S10).
Within a block, the product of the δ \delta δ -dependent parts of the L − k L-k L − k remaining sites is i L − k sin L − k δ i^{L-k}\sin^{L-k}\delta i L − k sin L − k δ up to a sign. At each of the k k k sites, the δ \delta δ -dependent part is cos δ \cos\delta cos δ when the spins of the row and the column are equal, that is, when the output is ( ↑ , ↓ ) (\uparrow,\downarrow) ( ↑ , ↓ ) or ( ↓ , ↑ ) (\downarrow,\uparrow) ( ↓ , ↑ ) , and 1 1 1 when they differ. These are the matrix elements of the spin-1/2 operator cos δ + 2 S j x \cos\delta+2S_j^x cos δ + 2 S j x . Each block is therefore equal, up to a sign, to the operator
( L L / 2 ) − 1 i L − k ∫ 0 2 π d δ 2 π sin L − k δ ∏ j ( cos δ + 2 S j x ) (44) \binom{L}{L/2}^{-1}i^{L-k}\int_0^{2\pi}\frac{d\delta}{2\pi}\sin^{L-k}\delta\prod_j(\cos\delta+2S_j^x) \tag*{(44)} ( L /2 L ) − 1 i L − k ∫ 0 2 π 2 π d δ sin L − k δ j ∏ ( cos δ + 2 S j x ) (44)
projected onto the subspace in which the z z z component of the total spin is m m m . Here the product runs over the k k k sites, and the total spin refers to these k k k spins. For odd k k k , replacing δ \delta δ with − δ -\delta − δ reverses the sign of the integrand, so the block vanishes.
The product in Eq. (44) is diagonal in the eigenstates of the individual S j x S_j^x S j x and takes the value ( cos δ + 1 ) k / 2 + m x ( cos δ − 1 ) k / 2 − m x (\cos\delta+1)^{k/2+m_x}(\cos\delta-1)^{k/2-m_x} ( cos δ + 1 ) k /2 + m x ( cos δ − 1 ) k /2 − m x on a state in which the x x x component of the total spin is m x m_x m x . The product is thus a function of the x x x component of the total spin and preserves each multiplet of total spin S S S . Each multiplet contains exactly one state ∣ S , m ⟩ |S,m\rangle ∣ S , m ⟩ in which the z z z component of the total spin is m m m , so the states ∣ S , m ⟩ |S,m\rangle ∣ S , m ⟩ of all multiplets are eigenvectors of the projected block. The diagonal element ⟨ S , m ∣ ∏ j ( cos δ + 2 S j x ) ∣ S , m ⟩ \langle S,m|\prod_j(\cos\delta+2S_j^x)|S,m\rangle ⟨ S , m ∣ ∏ j ( cos δ + 2 S j x ) ∣ S , m ⟩ that gives the eigenvalue is a matrix element of a function of the total-spin operators and is therefore the same for all multiplets. We evaluate it in the multiplet in which k − 2 S k-2S k − 2 S spins form k / 2 − S k/2-S k /2 − S singlet pairs and the other 2 S 2S 2 S spins are in a symmetric state. On a singlet pair ( j , j ′ ) (j,j') ( j , j ′ ) , the operator ( cos δ + 2 S j x ) ( cos δ + 2 S j ′ x ) (\cos\delta+2S_j^x)(\cos\delta+2S_{j'}^x) ( cos δ + 2 S j x ) ( cos δ + 2 S j ′ x ) has the eigenvalue cos 2 δ − 1 = − sin 2 δ \cos^2\delta-1=-\sin^2\delta cos 2 δ − 1 = − sin 2 δ . The state of the 2 S 2S 2 S symmetric spins with the z z z component m m m is the Dicke state, that is, the equal-weight superposition of all configurations with S + m S+m S + m up spins. In the expansion of the product ∏ j ( cos δ + 2 S j x ) \prod_j(\cos\delta+2S_j^x) ∏ j ( cos δ + 2 S j x ) , each term flips some of the spins and multiplies the others by cos δ \cos\delta cos δ . In the diagonal element for the Dicke state, the ( S + m g ) ( S − m g ) \binom{S+m}{g}\binom{S-m}{g} ( g S + m ) ( g S − m ) terms that flip g g g of the S + m S+m S + m up spins and g g g of the S − m S-m S − m down spins of one configuration each contribute cos 2 S − 2 g δ \cos^{2S-2g}\delta cos 2 S − 2 g δ . We thus obtain
⟨ S , m ∣ ∏ j ( cos δ + 2 S j x ) ∣ S , m ⟩ = ( − sin 2 δ ) k / 2 − S ∑ g = 0 S − ∣ m ∣ ( S + m g ) ( S − m g ) cos 2 S − 2 g δ (45) \langle S,m|\prod_j(\cos\delta+2S_j^x)|S,m\rangle=(-\sin^2\delta)^{k/2-S}\sum_{g=0}^{S-|m|}\binom{S+m}{g}\binom{S-m}{g}\cos^{2S-2g}\delta \tag*{(45)} ⟨ S , m ∣ j ∏ ( cos δ + 2 S j x ) ∣ S , m ⟩ = ( − sin 2 δ ) k /2 − S g = 0 ∑ S − ∣ m ∣ ( g S + m ) ( g S − m ) cos 2 S − 2 g δ (45)
The factors in Eqs. (44) and (45) combine into i L − k sin L − k δ ( − sin 2 δ ) k / 2 − S = ( − 1 ) L / 2 − S sin L − 2 S δ i^{L-k}\sin^{L-k}\delta\,(-\sin^2\delta)^{k/2-S}=(-1)^{L/2-S}\sin^{L-2S}\delta i L − k sin L − k δ ( − sin 2 δ ) k /2 − S = ( − 1 ) L /2 − S sin L − 2 S δ , which does not depend on k k k . Each block is real and symmetric, so its singular values are the absolute values of its eigenvalues. Using the beta-function integral
∫ 0 2 π d δ 2 π sin L − 2 S δ cos 2 S − 2 g δ = 1 π B ( L − 2 S + 1 2 , 2 S − 2 g + 1 2 ) = ( L − 2 S ) ! ( 2 S − 2 g ) ! 4 L / 2 − g ( L / 2 − S ) ! ( S − g ) ! ( L / 2 − g ) ! (46) \int_0^{2\pi}\frac{d\delta}{2\pi}\sin^{L-2S}\delta\cos^{2S-2g}\delta=\frac{1}{\pi}B\left(\frac{L-2S+1}{2},\frac{2S-2g+1}{2}\right)=\frac{(L-2S)!\,(2S-2g)!}{4^{L/2-g}(L/2-S)!(S-g)!(L/2-g)!} \tag*{(46)} ∫ 0 2 π 2 π d δ sin L − 2 S δ cos 2 S − 2 g δ = π 1 B ( 2 L − 2 S + 1 , 2 2 S − 2 g + 1 ) = 4 L /2 − g ( L /2 − S )! ( S − g )! ( L /2 − g )! ( L − 2 S )! ( 2 S − 2 g )! (46)
we obtain the singular values
Λ S , m = ( L L / 2 ) − 1 ∑ g = 0 S − ∣ m ∣ ( S + m g ) ( S − m g ) ( L − 2 S ) ! ( 2 S − 2 g ) ! 4 L / 2 − g ( L / 2 − S ) ! ( S − g ) ! ( L / 2 − g ) ! (47) \Lambda_{S,m} = \binom{L}{L/2}^{-1} \sum_{g=0}^{S-\lvert m\rvert} \binom{S+m}{g}\binom{S-m}{g}\frac{(L-2S)!(2S-2g)!}{4^{L/2-g}(L/2-S)!(S-g)!(L/2-g)!} \tag*{(47)} Λ S , m = ( L /2 L ) − 1 g = 0 ∑ S − ∣ m ∣ ( g S + m ) ( g S − m ) 4 L /2 − g ( L /2 − S )! ( S − g )! ( L /2 − g )! ( L − 2 S )! ( 2 S − 2 g )! (47)
Since Λ S , m \Lambda_{S,m} Λ S , m depends only on S S S and m m m , it remains to count the multiplets of total spin S S S in all blocks. Empty and doubly occupied sites have zero spin, so this number equals the number of multiplets of total spin S S S of copy A A A in the space spanned by all output configurations of copy A A A . If we assign 1 , 1 , z , z − 1 1,1,z,z^{-1} 1 , 1 , z , z − 1 to the site states 0 , ↑ ↓ , ↑ , ↓ 0,\uparrow\downarrow,\uparrow,\downarrow 0 , ↑↓ , ↑ , ↓ , the number of configurations in which the z z z component of the total spin is m m m is the coefficient of z 2 m z^{2m} z 2 m in ( 2 L L + 2 m ) ( 2 + z + z − 1 ) L = z − L ( 1 + z ) 2 L \binom{2L}{L+2m}(2+z+z^{-1})^L=z^{-L}(1+z)^{2L} ( L + 2 m 2 L ) ( 2 + z + z − 1 ) L = z − L ( 1 + z ) 2 L . The number of multiplets of total spin S S S is the difference between the numbers of configurations with the z z z components S S S and S + 1 S+1 S + 1 , which gives
ν 2 ( D L ) = ∑ S = 0 L / 2 [ ( 2 L L + 2 S ) − ( 2 L L + 2 S + 2 ) ] ∑ m = − S S Λ S , m 4 . (48) \nu_2(D_L)=\sum_{S=0}^{L/2}\left[\binom{2L}{L+2S}-\binom{2L}{L+2S+2}\right]\sum_{m=-S}^{S}\Lambda_{S,m}^{4}. \tag*{(48)} ν 2 ( D L ) = S = 0 ∑ L /2 [ ( L + 2 S 2 L ) − ( L + 2 S + 2 2 L ) ] m = − S ∑ S Λ S , m 4 . (48)
Half-integer values of S S S arise only from odd k k k , so only integer values of S S S appear in the sum. Figure S2 compares this exact value with the MRE sampled from the exact MPS in Figure 2 (a), and the deviation lies within 2.1 standard errors at all sizes.
Figure S2. Deviation δ M 2 = M ‾ 2 − M 2 ( D L ) \delta M_2=\overline{M}_2-M_2(D_L) δ M 2 = M 2 − M 2 ( D L ) of the MRE M ‾ 2 \overline{M}_2 M 2 sampled from the exact MPS at Δ = − 1 \Delta=-1 Δ = − 1 in Figure 2 (a) from the exact value of Eq. (48) . The error bars are one standard error.
Asymptotic expansion of the purity of number-projected product states
The state ∣ D L ⟩ \lvert D_L\rangle ∣ D L ⟩ and the domain-wall state of Eq. (77) below are both of the form
∣ ξ ⟩ = 1 Z P N ↑ = L / 2 ⨂ j = 1 L ( p j ∣ ↑ ⟩ + 1 − p j ∣ ↓ ⟩ ) , (49) \lvert\xi\rangle=\frac{1}{\sqrt{Z}}P_{N_{\uparrow}=L/2}\bigotimes_{j=1}^{L}\left(\sqrt{p_j}\lvert\uparrow\rangle+\sqrt{1-p_j}\lvert\downarrow\rangle\right), \tag*{(49)} ∣ ξ ⟩ = Z 1 P N ↑ = L /2 j = 1 ⨂ L ( p j ∣ ↑ ⟩ + 1 − p j ∣ ↓ ⟩ ) , (49)
where P N ↑ = L / 2 P_{N_{\uparrow}=L/2} P N ↑ = L /2 is the projector onto N ↑ = L / 2 N_{\uparrow}=L/2 N ↑ = L /2 , 0 < p j < 1 0<p_j<1 0 < p j < 1 , and Z = ∑ ∣ s ∣ = L / 2 Pr ( s ) Z=\sum_{\lvert s\rvert=L/2}\Pr(s) Z = ∑ ∣ s ∣ = L /2 Pr ( s ) is the probability of N ↑ = L / 2 N_{\uparrow}=L/2 N ↑ = L /2 in the product state. Here Pr ( s ) = ∏ j = 1 L p j s j ( 1 − p j ) 1 − s j \Pr(s)=\prod_{j=1}^{L}p_j^{s_j}(1-p_j)^{1-s_j} Pr ( s ) = ∏ j = 1 L p j s j ( 1 − p j ) 1 − s j is the probability of the spin configuration s s s in the product state, where s j s_j s j is 1 for up and 0 for down. In this section, we derive an asymptotic expansion of the purity ν 2 ( ξ ) \nu_2(\xi) ν 2 ( ξ ) of ∣ ξ ⟩ \lvert\xi\rangle ∣ ξ ⟩ up to first order in the inverse of the variance of N ↑ N_{\uparrow} N ↑ in the product state.
The purity of a state of the form of Eq. (49) can be written as a probability. We first insert Eq. (40) into Eq. (4) of the main text for a state ∣ ψ ⟩ \lvert\psi\rangle ∣ ψ ⟩ with one fermion per site. In a nonzero term, n ( a j ′ ) = 2 − n ( b j ) = n ( a j ) n(a'_j)=2-n(b_j)=n(a_j) n ( a j ′ ) = 2 − n ( b j ) = n ( a j ) and n ( b j ′ ) = n ( b j ) n(b'_j)=n(b_j) n ( b j ′ ) = n ( b j ) , so the four amplitudes carry the same sign, whose fourth power is one. The sum over the output configurations factorizes over sites, which gives
ν 2 ( ψ ) = ∑ s 1 , … , s 4 ∑ t 1 , … , t 4 ∏ i = 1 4 ψ ( t i ) ‾ ψ ( s i ) ∏ j = 1 L V t ( j ) s ( j ) . (50) \nu_2(\psi)=\sum_{s_1,\ldots,s_4}\sum_{t_1,\ldots,t_4}\prod_{i=1}^{4}\overline{\psi(t_i)}\psi(s_i)\prod_{j=1}^{L}V_{t^{(j)}s^{(j)}}. \tag*{(50)} ν 2 ( ψ ) = s 1 , … , s 4 ∑ t 1 , … , t 4 ∑ i = 1 ∏ 4 ψ ( t i ) ψ ( s i ) j = 1 ∏ L V t ( j ) s ( j ) . (50)
Here ( t 1 , t 2 ) (t_1,t_2) ( t 1 , t 2 ) and ( t 3 , t 4 ) (t_3,t_4) ( t 3 , t 4 ) are the input spin configurations of the complex-conjugated amplitudes Φ ( a , b ) \Phi(a,b) Φ ( a , b ) and Φ ( a ′ , b ′ ) \Phi(a',b') Φ ( a ′ , b ′ ) , and ( s 1 , s 2 ) (s_1,s_2) ( s 1 , s 2 ) and ( s 3 , s 4 ) (s_3,s_4) ( s 3 , s 4 ) are those of Φ ( a ′ , b ) \Phi(a',b) Φ ( a ′ , b ) and Φ ( a , b ′ ) \Phi(a,b') Φ ( a , b ′ ) . The coefficients in Eq. (39) are real, so the complex conjugation acts only on ψ ( t i ) \psi(t_i) ψ ( t i ) . The four spins of these configurations at site j j j are s ( j ) = ( s 1 j , … , s 4 j ) s^{(j)}=(s_{1j},\ldots,s_{4j}) s ( j ) = ( s 1 j , … , s 4 j ) and t ( j ) = ( t 1 j , … , t 4 j ) t^{(j)}=(t_{1j},\ldots,t_{4j}) t ( j ) = ( t 1 j , … , t 4 j ) , and the 16 × 16 16\times16 16 × 16 matrix on the four spins s s s and t t t of one site is
V t s = ∑ a , b , a ′ , b ′ ⟨ a , b ∣ U B S ∣ t 1 , t 2 ⟩ ⟨ a ′ , b ′ ∣ U B S ∣ t 3 , t 4 ⟩ ⟨ a ′ , b ∣ U B S ∣ s 1 , s 2 ⟩ ⟨ a , b ′ ∣ U B S ∣ s 3 , s 4 ⟩ . (51) V_{ts}=\sum_{a,b,a',b'}\langle a,b|U_{\mathrm{BS}}|t_1,t_2\rangle\langle a',b'|U_{\mathrm{BS}}|t_3,t_4\rangle\langle a',b|U_{\mathrm{BS}}|s_1,s_2\rangle\langle a,b'|U_{\mathrm{BS}}|s_3,s_4\rangle. \tag*{(51)} V t s = a , b , a ′ , b ′ ∑ ⟨ a , b ∣ U BS ∣ t 1 , t 2 ⟩ ⟨ a ′ , b ′ ∣ U BS ∣ t 3 , t 4 ⟩ ⟨ a ′ , b ∣ U BS ∣ s 1 , s 2 ⟩ ⟨ a , b ′ ∣ U BS ∣ s 3 , s 4 ⟩ . (51)
Let ∣ s ∣ |s| ∣ s ∣ be the number of up spins in s s s . By using Eq. (39) , the nonzero entries of V V V are obtained as follows. For s = ↑ ↑ ↑ ↑ s=\uparrow\uparrow\uparrow\uparrow s =↑↑↑↑ and s = ↓ ↓ ↓ ↓ s=\downarrow\downarrow\downarrow\downarrow s =↓↓↓↓ , the only nonzero entry in the column of s s s is V s s = 1 V_{ss}=1 V ss = 1 . For ∣ s ∣ = 1 |s|=1 ∣ s ∣ = 1 and ∣ s ∣ = 3 |s|=3 ∣ s ∣ = 3 , V t s = 1 / 4 V_{ts}=1/4 V t s = 1/4 for each of the four states t t t with ∣ t ∣ = ∣ s ∣ |t|=|s| ∣ t ∣ = ∣ s ∣ . For ∣ s ∣ = 2 |s|=2 ∣ s ∣ = 2 , the entries in the basis ↓ ↓ ↑ ↑ , ↓ ↑ ↓ ↑ , ↓ ↑ ↑ ↓ , ↑ ↓ ↓ ↑ , ↑ ↓ ↑ ↓ , ↑ ↑ ↓ ↓ \downarrow\downarrow\uparrow\uparrow,\downarrow\uparrow\downarrow\uparrow,\downarrow\uparrow\uparrow\downarrow,\uparrow\downarrow\downarrow\uparrow,\uparrow\downarrow\uparrow\downarrow,\uparrow\uparrow\downarrow\downarrow ↓↓↑↑ , ↓↑↓↑ , ↓↑↑↓ , ↑↓↓↑ , ↑↓↑↓ , ↑↑↓↓ are
1 4 ( 0 1 1 1 1 0 1 1 0 0 1 1 1 0 1 1 0 1 1 0 1 1 0 1 1 1 0 0 1 1 0 1 1 1 1 0 ) . (52) \frac{1}{4}
\begin{pmatrix}
0&1&1&1&1&0\\
1&1&0&0&1&1\\
1&0&1&1&0&1\\
1&0&1&1&0&1\\
1&1&0&0&1&1\\
0&1&1&1&1&0
\end{pmatrix}. \tag*{(52)} 4 1 0 1 1 1 1 0 1 1 0 0 1 1 1 0 1 1 0 1 1 0 1 1 0 1 1 1 0 0 1 1 0 1 1 1 1 0 . (52)
These entries show that V V V satisfies
V t s ≥ 0 , ∑ t V t s = 1 , (53) V_{ts}\ge0,\qquad\sum_t V_{ts}=1, \tag*{(53)} V t s ≥ 0 , t ∑ V t s = 1 , (53)
∑ s V t s = 1 , (54) \sum_s V_{ts}=1, \tag*{(54)} s ∑ V t s = 1 , (54)
V t s = 0 ( ∣ t ∣ ≠ ∣ s ∣ ) , (55) V_{ts}=0\quad(|t|\ne|s|), \tag*{(55)} V t s = 0 ( ∣ t ∣ = ∣ s ∣ ) , (55)
V t ˉ s ˉ = V t s , (56) V_{\bar{t}\bar{s}}=V_{ts}, \tag*{(56)} V t ˉ s ˉ = V t s , (56)
∑ t : t i = ↑ V t s = ∣ s ∣ 4 ( i = 1 , … , 4 ) , (57) \sum_{t:t_i=\uparrow}V_{ts}=\frac{|s|}{4}\quad(i=1,\ldots,4), \tag*{(57)} t : t i =↑ ∑ V t s = 4 ∣ s ∣ ( i = 1 , … , 4 ) , (57)
where s ˉ \bar{s} s ˉ is the configuration obtained from s s s by flipping all spins.
The amplitudes of the state in Eq. (49) are ξ ( s ) = Z − 1 / 2 δ ∣ s ∣ , L / 2 Pr ( s ) \xi(s)=Z^{-1/2}\delta_{|s|,L/2}\sqrt{\Pr(s)} ξ ( s ) = Z − 1/2 δ ∣ s ∣ , L /2 Pr ( s ) . The product ∏ i Pr ( s i ) = ∏ j p j ∣ s ( j ) ∣ ( 1 − p j ) 4 − ∣ s ( j ) ∣ \prod_i\Pr(s_i)=\prod_j p_j^{|s^{(j)}|}(1-p_j)^{4-|s^{(j)}|} ∏ i Pr ( s i ) = ∏ j p j ∣ s ( j ) ∣ ( 1 − p j ) 4 − ∣ s ( j ) ∣ depends only on the numbers ∣ s ( j ) ∣ |s^{(j)}| ∣ s ( j ) ∣ of up spins at each site. In the nonzero terms of Eq. (50) , Eq. (55) gives ∣ t ( j ) ∣ = ∣ s ( j ) ∣ |t^{(j)}|=|s^{(j)}| ∣ t ( j ) ∣ = ∣ s ( j ) ∣ , so ∏ i Pr ( t i ) = ∏ i Pr ( s i ) \prod_i\Pr(t_i)=\prod_i\Pr(s_i) ∏ i Pr ( t i ) = ∏ i Pr ( s i ) and the square roots disappear. Furthermore, by Eq. (53) , ∏ i Pr ( s i ) ∏ j V t ( j ) s ( j ) \prod_i\Pr(s_i)\prod_jV_{t^{(j)}s^{(j)}} ∏ i Pr ( s i ) ∏ j V t ( j ) s ( j ) is the probability of a process in which s 1 , … , s 4 s_1,\ldots,s_4 s 1 , … , s 4 are drawn independently from the product state and t ( j ) t^{(j)} t ( j ) is then drawn at each site with probability V t ( j ) s ( j ) V_{t^{(j)}s^{(j)}} V t ( j ) s ( j ) (Figure S3 ). The probability that each of s 1 , … , s 4 s_1,\ldots,s_4 s 1 , … , s 4 has L / 2 L/2 L /2 up spins is Z 4 Z^4 Z 4 , so
Figure S3. Example of the event in Eq. (58) for L = 6 L=6 L = 6 . The upper four rows are s 1 , … , s 4 s_1,\ldots,s_4 s 1 , … , s 4 , the lower four rows are t 1 , … , t 4 t_1,\ldots,t_4 t 1 , … , t 4 , and column j j j shows the four spins s ( j ) s^{(j)} s ( j ) and t ( j ) t^{(j)} t ( j ) at site j j j . The spins in the upper rows are drawn independently, and each lower column is drawn from the upper column with probability V t ( j ) s ( j ) V_{t^{(j)}s^{(j)}} V t ( j ) s ( j ) . In this example, every column has V t ( j ) s ( j ) = 1 / 4 V_{t^{(j)}s^{(j)}}=1/4 V t ( j ) s ( j ) = 1/4 , and all eight rows have three up spins.
ν 2 ( ξ ) = Pr [ ∣ t i ∣ = L / 2 ( i = 1 , … , 4 ) ∣ ∣ s i ∣ = L / 2 ( i = 1 , … , 4 ) ] . (58) \nu_2(\xi)=\Pr\left[|t_i|=L/2\ (i=1,\ldots,4)\mid|s_i|=L/2\ (i=1,\ldots,4)\right]. \tag*{(58)} ν 2 ( ξ ) = Pr [ ∣ t i ∣ = L /2 ( i = 1 , … , 4 ) ∣ ∣ s i ∣ = L /2 ( i = 1 , … , 4 ) ] . (58)
We expand Eq. (58) when the variance
v = ∑ j = 1 L p j ( 1 − p j ) (59) v=\sum_{j=1}^{L}p_j(1-p_j) \tag*{(59)} v = j = 1 ∑ L p j ( 1 − p j ) (59)
of N ↑ N_{\uparrow} N ↑ in the product state is large. We assume p L + 1 − j = 1 − p j p_{L+1-j}=1-p_j p L + 1 − j = 1 − p j , as is the case for ∣ D L ⟩ |D_L\rangle ∣ D L ⟩ and for the domain-wall state of Eq. (77) . This assumption implies ∑ j p j = L / 2 \sum_jp_j=L/2 ∑ j p j = L /2 . We collect the seven spins s 1 j , s 2 j , s 3 j , s 4 j , t 1 j , t 2 j , t 3 j s_{1j},s_{2j},s_{3j},s_{4j},t_{1j},t_{2j},t_{3j} s 1 j , s 2 j , s 3 j , s 4 j , t 1 j , t 2 j , t 3 j at site j j j into a vector Y j ∈ { 0 , 1 } 7 Y_j\in\{0,1\}^7 Y j ∈ { 0 , 1 } 7 , with 1 for up and 0 for down. By Eq. (55) , the condition on t 4 t_4 t 4 follows from the other seven conditions. Equation Eq. (58) therefore becomes
ν 2 ( ξ ) = Z − 4 Pr [ ∑ j Y j = L 2 ( 1 , … , 1 ) ] . (60) \nu_2(\xi)=Z^{-4}\Pr\left[\sum_jY_j=\frac{L}{2}(1,\ldots,1)\right]. \tag*{(60)} ν 2 ( ξ ) = Z − 4 Pr [ j ∑ Y j = 2 L ( 1 , … , 1 ) ] . (60)
Note that the vectors Y j \mathbf{Y}_j Y j of different sites are independent.
At site j j j , the spins s 1 j , … , s 4 j s_{1j},\ldots,s_{4j} s 1 j , … , s 4 j are independent, each with mean p j p_j p j and variance p j ( 1 − p j ) p_j(1-p_j) p j ( 1 − p j ) . Since the probability of s ( j ) = s s^{(j)}=s s ( j ) = s is p j ∣ s ∣ ( 1 − p j ) 4 − ∣ s ∣ p_j^{|s|}(1-p_j)^{4-|s|} p j ∣ s ∣ ( 1 − p j ) 4 − ∣ s ∣ , the probability of t ( j ) = t t^{(j)}=t t ( j ) = t is
∑ s V t s p j ∣ s ∣ ( 1 − p j ) 4 − ∣ s ∣ = p j ∣ t ∣ ( 1 − p j ) 4 − ∣ t ∣ ∑ s V t s = p j ∣ t ∣ ( 1 − p j ) 4 − ∣ t ∣ . (61) \sum_s V_{ts}p_j^{|s|}(1-p_j)^{4-|s|}=p_j^{|t|}(1-p_j)^{4-|t|}\sum_s V_{ts}=p_j^{|t|}(1-p_j)^{4-|t|}. \tag*{(61)} s ∑ V t s p j ∣ s ∣ ( 1 − p j ) 4 − ∣ s ∣ = p j ∣ t ∣ ( 1 − p j ) 4 − ∣ t ∣ s ∑ V t s = p j ∣ t ∣ ( 1 − p j ) 4 − ∣ t ∣ . (61)
Hence t ( j ) t^{(j)} t ( j ) has the same distribution as s ( j ) s^{(j)} s ( j ) . The first equality uses Eq. (55) , and the second uses Eq. (54) . By Eq. (57) , the spin t i j t_{ij} t ij is up with probability ∣ s ( j ) ∣ / 4 |s^{(j)}|/4 ∣ s ( j ) ∣/4 for given s ( j ) s^{(j)} s ( j ) , so the covariance between s k j s_{kj} s k j and t i j t_{ij} t ij is p j ( 1 − p j ) / 4 p_j(1-p_j)/4 p j ( 1 − p j ) /4 . The covariance matrix of Y j \mathbf{Y}_j Y j is thus p j ( 1 − p j ) Σ 0 p_j(1-p_j)\Sigma_0 p j ( 1 − p j ) Σ 0 with
Σ 0 = ( I 4 J / 4 J T / 4 I 3 ) , det Σ 0 = 1 4 , (62) \Sigma_0=\begin{pmatrix} I_4 & J/4 \\ J^{T}/4 & I_3 \end{pmatrix},\qquad\det\Sigma_0=\frac{1}{4}, \tag*{(62)} Σ 0 = ( I 4 J T /4 J /4 I 3 ) , det Σ 0 = 4 1 , (62)
where J J J is the 4 × 3 4\times3 4 × 3 matrix of ones. The sum ∑ j Y j \sum_j\mathbf{Y}_j ∑ j Y j has the mean L 2 ( 1 , … , 1 ) \frac{L}{2}(1,\ldots,1) 2 L ( 1 , … , 1 ) and the covariance matrix v Σ 0 v\Sigma_0 v Σ 0 .
The probability of ∑ j Y j = L 2 ( 1 , … , 1 ) \sum_j\mathbf{Y}_j=\frac{L}{2}(1,\ldots,1) ∑ j Y j = 2 L ( 1 , … , 1 ) is the expectation value of the Kronecker delta of the integer vector ∑ j ( Y j − E Y j ) \sum_j(\mathbf{Y}_j-\mathbb{E}\mathbf{Y}_j) ∑ j ( Y j − E Y j ) . Writing this delta as ∫ [ − π , π ] 7 d 7 θ e i θ ⋅ ∑ j ( Y j − E Y j ) / ( 2 π ) 7 \int_{[-\pi,\pi]^7}d^7\theta\,e^{i\boldsymbol{\theta}\cdot\sum_j(\mathbf{Y}_j-\mathbb{E}\mathbf{Y}_j)}/(2\pi)^7 ∫ [ − π , π ] 7 d 7 θ e i θ ⋅ ∑ j ( Y j − E Y j ) / ( 2 π ) 7 and using the independence of the Y j \mathbf{Y}_j Y j , we obtain
Pr [ ∑ j Y j = L 2 ( 1 , … , 1 ) ] = ∫ [ − π , π ] 7 d 7 θ ( 2 π ) 7 ∏ j = 1 L φ j ( θ ) , φ j ( θ ) = E [ e i θ ⋅ ( Y j − E Y j ) ] . (63) \Pr\left[\sum_j\mathbf{Y}_j=\frac{L}{2}(1,\ldots,1)\right]=\int_{[-\pi,\pi]^7}\frac{d^7\theta}{(2\pi)^7}\prod_{j=1}^{L}\varphi_j(\boldsymbol{\theta}),\qquad\varphi_j(\boldsymbol{\theta})=\mathbb{E}\left[e^{i\boldsymbol{\theta}\cdot(\mathbf{Y}_j-\mathbb{E}\mathbf{Y}_j)}\right]. \tag*{(63)} Pr [ j ∑ Y j = 2 L ( 1 , … , 1 ) ] = ∫ [ − π , π ] 7 ( 2 π ) 7 d 7 θ j = 1 ∏ L φ j ( θ ) , φ j ( θ ) = E [ e i θ ⋅ ( Y j − E Y j ) ] . (63)
Since Y j \mathbf{Y}_j Y j takes the value 0 \mathbf{0} 0 and every unit vector is a difference of two values of Y j \mathbf{Y}_j Y j , ∣ φ j ( θ ) ∣ < 1 |\varphi_j(\boldsymbol{\theta})|<1 ∣ φ j ( θ ) ∣ < 1 for θ ≠ 0 \boldsymbol{\theta}\ne\mathbf{0} θ = 0 . In the two states considered below, the number of sites with p j ( 1 − p j ) p_j(1-p_j) p j ( 1 − p j ) of order one is of order v v v , so the integrand decreases exponentially in v v v away from θ = 0 \boldsymbol{\theta}=\mathbf{0} θ = 0 and only small θ \boldsymbol{\theta} θ contributes.
For small θ \boldsymbol{\theta} θ , the logarithm of the integrand is the sum over j j j of the cumulant expansions of ln φ j \ln\varphi_j ln φ j . The first-order terms vanish, and the second-order terms add up to − v θ T Σ 0 θ / 2 -v\boldsymbol{\theta}^{T}\Sigma_0\boldsymbol{\theta}/2 − v θ T Σ 0 θ /2 . The odd-order terms cancel, because p L + 1 − j = 1 − p j p_{L+1-j}=1-p_j p L + 1 − j = 1 − p j and Eq. (56) make Y L + 1 − j − E Y L + 1 − j \mathbf{Y}_{L+1-j}-\mathbb{E}\mathbf{Y}_{L+1-j} Y L + 1 − j − E Y L + 1 − j distributed as − ( Y j − E Y j ) -(\mathbf{Y}_j-\mathbb{E}\mathbf{Y}_j) − ( Y j − E Y j ) . We set θ = u / v \boldsymbol{\theta}=\mathbf{u}/\sqrt{v} θ = u / v and expand ∑ j ln φ j \sum_j\ln\varphi_j ∑ j ln φ j in u \mathbf{u} u ,
∑ j = 1 L ln φ j ( u v ) = − 1 2 u T Σ 0 u + 1 4 ! v 2 ∑ j = 1 L ∑ a , b , c , d = 1 7 κ a b c d ( j ) u a u b u c u d + O ( v − 2 ) , (64) \sum_{j=1}^{L}\ln\varphi_j\left(\frac{\mathbf{u}}{\sqrt{v}}\right)=-\frac{1}{2}\mathbf{u}^{T}\Sigma_0\mathbf{u}+\frac{1}{4!v^2}\sum_{j=1}^{L}\sum_{a,b,c,d=1}^{7}\kappa_{abcd}^{(j)}u_au_bu_cu_d+O(v^{-2}), \tag*{(64)} j = 1 ∑ L ln φ j ( v u ) = − 2 1 u T Σ 0 u + 4 ! v 2 1 j = 1 ∑ L a , b , c , d = 1 ∑ 7 κ ab c d ( j ) u a u b u c u d + O ( v − 2 ) , (64)
where κ a b c d ( j ) = ∂ θ a ∂ θ b ∂ θ c ∂ θ d ln φ j ( 0 ) \kappa_{abcd}^{(j)}=\partial_{\theta_a}\partial_{\theta_b}\partial_{\theta_c}\partial_{\theta_d}\ln\varphi_j(\mathbf{0}) κ ab c d ( j ) = ∂ θ a ∂ θ b ∂ θ c ∂ θ d ln φ j ( 0 ) is the fourth cumulant of Y j \mathbf{Y}_j Y j . Taking the exponential and expanding it to first order in the second term gives
∏ j = 1 L Φ j ( u v ) = e − u T Σ 0 u / 2 [ 1 + 1 4 ! v 2 ∑ j = 1 L ∑ a , b , c , d = 1 7 κ a b c d ( j ) u a u b u c u d + O ( v − 2 ) ] . (65) \prod_{j=1}^{L}\Phi_j\left(\frac{u}{\sqrt{v}}\right)=e^{-u^{\mathsf T}\Sigma_0u/2}\left[1+\frac{1}{4!v^2}\sum_{j=1}^{L}\sum_{a,b,c,d=1}^{7}\kappa_{abcd}^{(j)}u_a u_b u_c u_d+O(v^{-2})\right]. \tag*{(65)} j = 1 ∏ L Φ j ( v u ) = e − u T Σ 0 u /2 1 + 4 ! v 2 1 j = 1 ∑ L a , b , c , d = 1 ∑ 7 κ ab c d ( j ) u a u b u c u d + O ( v − 2 ) . (65)
We change the integration variable to u \mathbf{u} u with d 7 θ = v − 7 / 2 d 7 u \mathrm{d}^{7}\theta=v^{-7/2}\mathrm{d}^{7}u d 7 θ = v − 7/2 d 7 u and extend the integration range to R 7 \mathbb{R}^{7} R 7 . By the Gaussian integral, the term 1 in the brackets gives ( 2 π v ) − 7 / 2 ( det Σ 0 ) − 1 / 2 = 2 ( 2 π v ) − 7 / 2 (2\pi v)^{-7/2}(\det\Sigma_0)^{-1/2}=2(2\pi v)^{-7/2} ( 2 π v ) − 7/2 ( det Σ 0 ) − 1/2 = 2 ( 2 π v ) − 7/2 . By Wick’s theorem, the average of u a u b u c u d u_a u_b u_c u_d u a u b u c u d with the weight e − u T Σ 0 u / 2 e^{-u^{\mathsf T}\Sigma_0u/2} e − u T Σ 0 u /2 is ( Σ 0 − 1 ) a b ( Σ 0 − 1 ) c d + ( Σ 0 − 1 ) a c ( Σ 0 − 1 ) b d + ( Σ 0 − 1 ) a d ( Σ 0 − 1 ) b c (\Sigma_0^{-1})_{ab}(\Sigma_0^{-1})_{cd}+(\Sigma_0^{-1})_{ac}(\Sigma_0^{-1})_{bd}+(\Sigma_0^{-1})_{ad}(\Sigma_0^{-1})_{bc} ( Σ 0 − 1 ) ab ( Σ 0 − 1 ) c d + ( Σ 0 − 1 ) a c ( Σ 0 − 1 ) b d + ( Σ 0 − 1 ) a d ( Σ 0 − 1 ) b c . Since κ a b c d ( j ) \kappa_{abcd}^{(j)} κ ab c d ( j ) is symmetric in its indices, the three terms contribute equally, and the fourth-order term gives the coefficient 3 / 4 ! = 1 / 8 3/4!=1/8 3/4 ! = 1/8 . We thus obtain
Pr [ ∑ j Y j = L 2 ( 1 , … , 1 ) ] = 2 ( 2 π v ) 7 / 2 [ 1 + 1 8 v 2 ∑ j = 1 L c 4 ( p j ) + O ( v − 2 ) ] , (66) \Pr\left[\sum_jY_j=\frac{L}{2}(1,\ldots,1)\right]=\frac{2}{(2\pi v)^{7/2}}\left[1+\frac{1}{8v^2}\sum_{j=1}^{L}c_4(p_j)+O(v^{-2})\right], \tag*{(66)} Pr [ j ∑ Y j = 2 L ( 1 , … , 1 ) ] = ( 2 π v ) 7/2 2 [ 1 + 8 v 2 1 j = 1 ∑ L c 4 ( p j ) + O ( v − 2 ) ] , (66)
where
c 4 ( p j ) = ∑ a , b , c , d = 1 7 κ a b c d ( j ) ( Σ 0 − 1 ) a b ( Σ 0 − 1 ) c d . (67) c_4(p_j)=\sum_{a,b,c,d=1}^{7}\kappa_{abcd}^{(j)}(\Sigma_0^{-1})_{ab}(\Sigma_0^{-1})_{cd}. \tag*{(67)} c 4 ( p j ) = a , b , c , d = 1 ∑ 7 κ ab c d ( j ) ( Σ 0 − 1 ) ab ( Σ 0 − 1 ) c d . (67)
This is the Edgeworth expansion [56 ] . The same calculation for N ↑ N_{\uparrow} N ↑ in the product state, whose single-site fourth cumulant is p j ( 1 − p j ) [ 1 − 6 p j ( 1 − p j ) ] p_j(1-p_j)[1-6p_j(1-p_j)] p j ( 1 − p j ) [ 1 − 6 p j ( 1 − p j )] , gives
Z = 1 ( 2 π v ) 1 / 2 [ 1 + 1 8 v 2 ∑ j = 1 L p j ( 1 − p j ) [ 1 − 6 p j ( 1 − p j ) ] + O ( v − 2 ) ] . (68) Z=\frac{1}{(2\pi v)^{1/2}}\left[1+\frac{1}{8v^2}\sum_{j=1}^{L}p_j(1-p_j)[1-6p_j(1-p_j)]+O(v^{-2})\right]. \tag*{(68)} Z = ( 2 π v ) 1/2 1 [ 1 + 8 v 2 1 j = 1 ∑ L p j ( 1 − p j ) [ 1 − 6 p j ( 1 − p j )] + O ( v − 2 ) ] . (68)
To find c 4 ( p ) c_4(p) c 4 ( p ) for a site with up-spin probability p p p , let Q = ( Y − E Y ) T Σ 0 − 1 ( Y − E Y ) Q=(Y-\mathbb{E}Y)^{\mathsf T}\Sigma_0^{-1}(Y-\mathbb{E}Y) Q = ( Y − E Y ) T Σ 0 − 1 ( Y − E Y ) with Y − E Y = ( s 1 − p , … , s 4 − p , t 1 − p , t 2 − p , t 3 − p ) Y-\mathbb{E}Y=(s_1-p,\ldots,s_4-p,t_1-p,t_2-p,t_3-p) Y − E Y = ( s 1 − p , … , s 4 − p , t 1 − p , t 2 − p , t 3 − p ) . With the components X a X_a X a of Y − E Y Y-\mathbb{E}Y Y − E Y and the fourth cumulant κ a b c d \kappa_{abcd} κ ab c d of Y Y Y , the fourth moments are
E [ X a X b X c X d ] = κ a b c d + p 2 ( 1 − p ) 2 [ ( Σ 0 ) a b ( Σ 0 ) c d + ( Σ 0 ) a c ( Σ 0 ) b d + ( Σ 0 ) a d ( Σ 0 ) b c ] . (69) \mathbb{E}[X_aX_bX_cX_d]=\kappa_{abcd}+p^2(1-p)^2[(\Sigma_0)_{ab}(\Sigma_0)_{cd}+(\Sigma_0)_{ac}(\Sigma_0)_{bd}+(\Sigma_0)_{ad}(\Sigma_0)_{bc}]. \tag*{(69)} E [ X a X b X c X d ] = κ ab c d + p 2 ( 1 − p ) 2 [( Σ 0 ) ab ( Σ 0 ) c d + ( Σ 0 ) a c ( Σ 0 ) b d + ( Σ 0 ) a d ( Σ 0 ) b c ] . (69)
Multiplying both sides by ( Σ 0 − 1 ) a b ( Σ 0 − 1 ) c d (\Sigma_0^{-1})_{ab}(\Sigma_0^{-1})_{cd} ( Σ 0 − 1 ) ab ( Σ 0 − 1 ) c d and summing over a , b , c , d a,b,c,d a , b , c , d , we find that the left-hand side becomes E [ Q 2 ] \mathbb{E}[Q^2] E [ Q 2 ] and the term κ a b c d \kappa_{abcd} κ ab c d on the right-hand side becomes c 4 ( p ) c_4(p) c 4 ( p ) by Eq. (67) . Since Σ 0 \Sigma_0 Σ 0 and Σ 0 − 1 \Sigma_0^{-1} Σ 0 − 1 are 7 × 7 7\times7 7 × 7 symmetric matrices, the first term in the brackets gives [ Tr ( Σ 0 − 1 Σ 0 ) ] 2 = 49 [\operatorname{Tr}(\Sigma_0^{-1}\Sigma_0)]^2=49 [ Tr ( Σ 0 − 1 Σ 0 ) ] 2 = 49 , and the second and third terms each give Tr ( Σ 0 − 1 Σ 0 Σ 0 − 1 Σ 0 ) = 7 \operatorname{Tr}(\Sigma_0^{-1}\Sigma_0\Sigma_0^{-1}\Sigma_0)=7 Tr ( Σ 0 − 1 Σ 0 Σ 0 − 1 Σ 0 ) = 7 . Thus c 4 ( p ) = E [ Q 2 ] − 63 p 2 ( 1 − p ) 2 c_4(p)=\mathbb{E}[Q^2]-63p^2(1-p)^2 c 4 ( p ) = E [ Q 2 ] − 63 p 2 ( 1 − p ) 2 . The matrix Σ 0 − 1 \Sigma_0^{-1} Σ 0 − 1 is
Σ 0 − 1 = ( I 4 + 3 4 J 4 − J − J T I 3 + J 3 ) . (70) \Sigma_0^{-1}=\begin{pmatrix} I_4+\frac{3}{4}J_4 & -J \\ -J^{\mathsf T} & I_3+J_3 \end{pmatrix}. \tag*{(70)} Σ 0 − 1 = ( I 4 + 4 3 J 4 − J T − J I 3 + J 3 ) . (70)
where J n J_n J n is the n × n n\times n n × n matrix of ones. Substituting it and replacing ∑ i = 1 3 ( t i − p ) \sum_{i=1}^{3}(t_i-p) ∑ i = 1 3 ( t i − p ) with ( ∣ s ∣ − 4 p ) − ( t 4 − p ) (|s|-4p)-(t_4-p) ( ∣ s ∣ − 4 p ) − ( t 4 − p ) , we obtain
Q = ∑ i = 1 4 [ ( s i − p ) 2 + ( t i − p ) 2 ] − 1 4 ( ∣ s ∣ − 4 p ) 2 . (71) Q=\sum_{i=1}^{4}\left[(s_i-p)^2+(t_i-p)^2\right]-\frac{1}{4}(|s|-4p)^2. \tag*{(71)} Q = i = 1 ∑ 4 [ ( s i − p ) 2 + ( t i − p ) 2 ] − 4 1 ( ∣ s ∣ − 4 p ) 2 . (71)
Since s i s_i s i and t i t_i t i are 0 or 1, ( s i − p ) 2 = ( 1 − 2 p ) ( s i − p ) + p ( 1 − p ) (s_i-p)^2=(1-2p)(s_i-p)+p(1-p) ( s i − p ) 2 = ( 1 − 2 p ) ( s i − p ) + p ( 1 − p ) , and likewise for t i t_i t i . Together with ∑ i ( s i − p ) = ∑ i ( t i − p ) = ∣ s ∣ − 4 p \sum_i(s_i-p)=\sum_i(t_i-p)=|s|-4p ∑ i ( s i − p ) = ∑ i ( t i − p ) = ∣ s ∣ − 4 p , this gives
Q = 8 p ( 1 − p ) + 2 ( 1 − 2 p ) ( ∣ s ∣ − 4 p ) − 1 4 ( ∣ s ∣ − 4 p ) 2 . (72) Q=8p(1-p)+2(1-2p)(|s|-4p)-\frac{1}{4}(|s|-4p)^2. \tag*{(72)} Q = 8 p ( 1 − p ) + 2 ( 1 − 2 p ) ( ∣ s ∣ − 4 p ) − 4 1 ( ∣ s ∣ − 4 p ) 2 . (72)
Thus Q Q Q depends only on ∣ s ∣ |s| ∣ s ∣ . The number ∣ s ∣ |s| ∣ s ∣ follows the binomial distribution with four trials and probability p p p , and the second, third, and fourth moments of ∣ s ∣ − 4 p |s|-4p ∣ s ∣ − 4 p are 4 p ( 1 − p ) 4p(1-p) 4 p ( 1 − p ) , 4 p ( 1 − p ) ( 1 − 2 p ) 4p(1-p)(1-2p) 4 p ( 1 − p ) ( 1 − 2 p ) , and 4 p ( 1 − p ) + 24 p 2 ( 1 − p ) 2 4p(1-p)+24p^2(1-p)^2 4 p ( 1 − p ) + 24 p 2 ( 1 − p ) 2 . These moments give E [ Q 2 ] = 49 4 p ( 1 − p ) + 3 2 p 2 ( 1 − p ) 2 \mathbb{E}[Q^2]=\frac{49}{4}p(1-p)+\frac{3}{2}p^2(1-p)^2 E [ Q 2 ] = 4 49 p ( 1 − p ) + 2 3 p 2 ( 1 − p ) 2 and hence c 4 ( p ) = 49 4 p ( 1 − p ) − 123 2 p 2 ( 1 − p ) 2 c_4(p)=\frac{49}{4}p(1-p)-\frac{123}{2}p^2(1-p)^2 c 4 ( p ) = 4 49 p ( 1 − p ) − 2 123 p 2 ( 1 − p ) 2 . As in Eq. (60) , we divide Eq. (66) by the fourth power of Eq. (68) . Using c 4 ( p ) − 4 p ( 1 − p ) [ 1 − 6 p ( 1 − p ) ] = 33 4 p ( 1 − p ) − 75 2 p 2 ( 1 − p ) 2 c_4(p)-4p(1-p)[1-6p(1-p)]=\frac{33}{4}p(1-p)-\frac{75}{2}p^2(1-p)^2 c 4 ( p ) − 4 p ( 1 − p ) [ 1 − 6 p ( 1 − p )] = 4 33 p ( 1 − p ) − 2 75 p 2 ( 1 − p ) 2 and Eq. (59) , we obtain
ν 2 ( ξ ) = 2 ( 2 π v ) 3 / 2 [ 1 + 33 32 v − 75 16 v 2 ∑ j = 1 L p j 2 ( 1 − p j ) 2 + O ( v − 2 ) ] . (73) \nu_2(\xi)=\frac{2}{(2\pi v)^{3/2}}\left[1+\frac{33}{32v}-\frac{75}{16v^2}\sum_{j=1}^{L}p_j^2(1-p_j)^2+O(v^{-2})\right]. \tag*{(73)} ν 2 ( ξ ) = ( 2 π v ) 3/2 2 [ 1 + 32 v 33 − 16 v 2 75 j = 1 ∑ L p j 2 ( 1 − p j ) 2 + O ( v − 2 ) ] . (73)
For ∣ D L ⟩ |D_L\rangle ∣ D L ⟩ , all p j p_j p j are 1 / 2 1/2 1/2 , so v = L / 4 v=L/4 v = L /4 and ∑ j p j 2 ( 1 − p j ) 2 = L / 16 \sum_j p_j^2(1-p_j)^2=L/16 ∑ j p j 2 ( 1 − p j ) 2 = L /16 . The correction in Eq. (73) becomes 33 / ( 8 L ) − 75 / ( 16 L ) = − 9 / ( 16 L ) 33/(8L)-75/(16L)=-9/(16L) 33/ ( 8 L ) − 75/ ( 16 L ) = − 9/ ( 16 L ) , and we obtain
ν 2 ( D L ) = 4 2 π 3 / 2 L − 3 / 2 [ 1 − 9 16 L + O ( L − 2 ) ] . (74) \nu_2(D_L)=\frac{4\sqrt{2}}{\pi^{3/2}}L^{-3/2}\left[1-\frac{9}{16L}+O(L^{-2})\right]. \tag*{(74)} ν 2 ( D L ) = π 3/2 4 2 L − 3/2 [ 1 − 16 L 9 + O ( L − 2 ) ] . (74)
This yields Eq. (18) of the main text.
Equal-weight superposition of domain-wall states for Δ < − 1 \Delta<-1 Δ < − 1
For Δ < − 1 \Delta<-1 Δ < − 1 , we write Δ = − cosh η \Delta=-\cosh\eta Δ = − cosh η with η > 0 \eta>0 η > 0 and add to H H H the boundary fields of Refs. [54 , 55 ] ,
H + = H − sinh η 2 ( S L z − S 1 z ) . (75) H_+=H-\frac{\sinh\eta}{2}\left(S_L^z-S_1^z\right). \tag*{(75)} H + = H − 2 sinh η ( S L z − S 1 z ) . (75)
The rotated Hamiltonian is a sum of terms on neighboring sites,
U H + U † + ( L − 1 ) cosh η 4 = ∑ j = 1 L − 1 [ − S j x S j + 1 x − S j y S j + 1 y − cosh η ( S j z S j + 1 z − 1 4 ) − sinh η 2 ( S j + 1 z − S j z ) ] . (76) UH_+U^\dagger+\frac{(L-1)\cosh\eta}{4}=\sum_{j=1}^{L-1}\left[-S_j^xS_{j+1}^x-S_j^yS_{j+1}^y-\cosh\eta\left(S_j^zS_{j+1}^z-\frac{1}{4}\right)-\frac{\sinh\eta}{2}\left(S_{j+1}^z-S_j^z\right)\right]. \tag*{(76)} U H + U † + 4 ( L − 1 ) cosh η = j = 1 ∑ L − 1 [ − S j x S j + 1 x − S j y S j + 1 y − cosh η ( S j z S j + 1 z − 4 1 ) − 2 sinh η ( S j + 1 z − S j z ) ] . (76)
where the last terms in the brackets add up to the boundary fields. The term on sites j j j and j + 1 j+1 j + 1 has ∣ ↑ ⟩ j ∣ ↑ ⟩ j + 1 |\uparrow\rangle_j|\uparrow\rangle_{j+1} ∣ ↑ ⟩ j ∣ ↑ ⟩ j + 1 and ∣ ↓ ⟩ j ∣ ↓ ⟩ j + 1 |\downarrow\rangle_j|\downarrow\rangle_{j+1} ∣ ↓ ⟩ j ∣ ↓ ⟩ j + 1 as eigenstates with the eigenvalue 0 0 0 , and it is represented by the matrix 1 2 ( e η − 1 − 1 e − η ) \frac{1}{2}\begin{pmatrix}e^\eta& -1 \\ -1 & e^{-\eta}\end{pmatrix} 2 1 ( e η − 1 − 1 e − η ) in the basis ∣ ↑ ⟩ j ∣ ↓ ⟩ j + 1 , ∣ ↓ ⟩ j ∣ ↑ ⟩ j + 1 |\uparrow\rangle_j|\downarrow\rangle_{j+1},|\downarrow\rangle_j|\uparrow\rangle_{j+1} ∣ ↑ ⟩ j ∣ ↓ ⟩ j + 1 , ∣ ↓ ⟩ j ∣ ↑ ⟩ j + 1 . This matrix has the eigenvalues 0 0 0 and cosh η \cosh\eta cosh η , and its eigenvector with the eigenvalue 0 0 0 is ∣ ↑ ⟩ j ∣ ↓ ⟩ j + 1 + e η ∣ ↓ ⟩ j ∣ ↑ ⟩ j + 1 |\uparrow\rangle_j|\downarrow\rangle_{j+1}+e^\eta|\downarrow\rangle_j|\uparrow\rangle_{j+1} ∣ ↑ ⟩ j ∣ ↓ ⟩ j + 1 + e η ∣ ↓ ⟩ j ∣ ↑ ⟩ j + 1 . Every term is thus positive semidefinite and annihilates any state whose amplitude grows by e η e^\eta e η whenever an up spin moves one site to the right. At N ↑ = L / 2 N_\uparrow=L/2 N ↑ = L /2 , such a state is
∣ ξ + ⟩ ∝ exp [ η ∑ j = 1 L ( j − L + 1 2 ) n j ↑ ] ∣ D L ⟩ , (77) |\xi_+\rangle\propto\exp\left[\eta\sum_{j=1}^{L}\left(j-\frac{L+1}{2}\right)n_{j\uparrow}\right]|D_L\rangle, \tag*{(77)} ∣ ξ + ⟩ ∝ exp [ η j = 1 ∑ L ( j − 2 L + 1 ) n j ↑ ] ∣ D L ⟩ , (77)
because all configurations have the same amplitude in ∣ D L ⟩ |D_L\rangle ∣ D L ⟩ and moving an up spin one site to the right increases the sum in the exponent by one. Since the boundary fields are diagonal in the S z S^z S z basis, the argument of Sec. SI shows that ∣ ξ + ⟩ |\xi_+\rangle ∣ ξ + ⟩ is the unique ground state of U H + U † UH_+U^\dagger U H + U † at N ↑ = L / 2 N_\uparrow=L/2 N ↑ = L /2 .
The exponential in Eq. (77) is a product of factors of the individual sites and commutes with N ↑ N_\uparrow N ↑ . The factor of site j j j multiplies the amplitude of ∣ ↑ ⟩ |\uparrow\rangle ∣ ↑ ⟩ relative to that of ∣ ↓ ⟩ |\downarrow\rangle ∣ ↓ ⟩ by e η ( j − ( L + 1 ) / 2 ) e^{\eta(j-(L+1)/2)} e η ( j − ( L + 1 ) /2 ) . Since ∣ D L ⟩ |D_L\rangle ∣ D L ⟩ is the state of Eq. (49) with all p j = 1 / 2 p_j=1/2 p j = 1/2 , ∣ ξ + ⟩ |\xi_+\rangle ∣ ξ + ⟩ is the state of Eq. (49) with p j / ( 1 − p j ) = e η ( j − ( L + 1 ) / 2 ) \sqrt{p_j/(1-p_j)}=e^{\eta(j-(L+1)/2)} p j / ( 1 − p j ) = e η ( j − ( L + 1 ) /2 ) , that is,
p j = 1 1 + e − η ( 2 j − L − 1 ) . (78) p_j=\frac{1}{1+e^{-\eta(2j-L-1)}}. \tag*{(78)} p j = 1 + e − η ( 2 j − L − 1 ) 1 . (78)
In the product state, the spins are down near site 1 and up near site L L L . The variance p j ( 1 − p j ) = 1 / [ 4 cosh 2 ( η ( j − L + 1 2 ) ) ] p_j(1-p_j)=1/[4\cosh^2(\eta(j-\frac{L+1}{2}))] p j ( 1 − p j ) = 1/ [ 4 cosh 2 ( η ( j − 2 L + 1 ))] of each spin is appreciable only within about 1 / η 1/\eta 1/ η sites of the center. The state ∣ ξ − ⟩ = R ∣ ξ + ⟩ |\xi_-\rangle=\mathcal{R}|\xi_+\rangle ∣ ξ − ⟩ = R ∣ ξ + ⟩ has the up-spin probabilities 1 − p j 1-p_j 1 − p j . As the state to be compared with the ground state of the chain without boundary fields, we use the R \mathcal{R} R -invariant superposition
∣ ξ s ⟩ = ∣ ξ + ⟩ + ∣ ξ − ⟩ 2 + 2 ⟨ ξ + ∣ ξ − ⟩ . (79) |\xi_s\rangle=\frac{|\xi_+\rangle+|\xi_-\rangle}{\sqrt{2+2\langle\xi_+|\xi_-\rangle}}. \tag*{(79)} ∣ ξ s ⟩ = 2 + 2 ⟨ ξ + ∣ ξ − ⟩ ∣ ξ + ⟩ + ∣ ξ − ⟩ . (79)
For η ≪ 1 \eta\ll1 η ≪ 1 and L η ≫ 1 L\eta\gg1 L η ≫ 1 , the sums for ∣ ξ + ⟩ |\xi_+\rangle ∣ ξ + ⟩ become integrals,
v ≃ ∫ − ∞ ∞ d j 4 cosh 2 ( η ( j − L + 1 2 ) ) = 1 2 η , ∑ j p j 2 ( 1 − p j ) 2 ≃ ∫ − ∞ ∞ d j 16 cosh 4 ( η ( j − L + 1 2 ) ) = 1 12 η . (80) v\simeq\int_{-\infty}^{\infty}\frac{dj}{4\cosh^2(\eta(j-\frac{L+1}{2}))}=\frac{1}{2\eta},\qquad\sum_j p_j^2(1-p_j)^2\simeq\int_{-\infty}^{\infty}\frac{dj}{16\cosh^4(\eta(j-\frac{L+1}{2}))}=\frac{1}{12\eta}. \tag*{(80)} v ≃ ∫ − ∞ ∞ 4 cosh 2 ( η ( j − 2 L + 1 )) d j = 2 η 1 , j ∑ p j 2 ( 1 − p j ) 2 ≃ ∫ − ∞ ∞ 16 cosh 4 ( η ( j − 2 L + 1 )) d j = 12 η 1 . (80)
and the correction in Eq. (73) becomes 33 16 η − 25 16 η = η 2 \frac{33}{16}\eta-\frac{25}{16}\eta=\frac{\eta}{2} 16 33 η − 16 25 η = 2 η . We thus obtain
ν 2 ( ξ + ) = 2 ( η π ) 3 / 2 [ 1 + η 2 + O ( η 2 ) ] . (81) \nu_2(\xi_+)=2\left(\frac{\eta}{\pi}\right)^{3/2}\left[1+\frac{\eta}{2}+O(\eta^2)\right]. \tag*{(81)} ν 2 ( ξ + ) = 2 ( π η ) 3/2 [ 1 + 2 η + O ( η 2 ) ] . (81)
Finally, we find the purity of ∣ ξ s ⟩ |\xi_s\rangle ∣ ξ s ⟩ . Inserting ∣ ξ s ⟩ |\xi_s\rangle ∣ ξ s ⟩ into Eq. (50) gives
ν 2 ( ξ s ) = 1 ( 2 + 2 ⟨ ξ + ∣ ξ − ⟩ ) 4 ∑ σ , τ ∈ { + , − } 4 ∑ s 1 , … , s 4 ∑ t 1 , … , t 4 ∏ i = 1 4 ξ τ i ( t i ) ‾ ξ σ i ( s i ) ∏ j = 1 L V t ( j ) s ( j ) . (82) \nu_2(\xi_s)=\frac{1}{\left(2+2\langle\xi_+|\xi_-\rangle\right)^4}\sum_{\sigma,\tau\in\{+,-\}^4}\sum_{s_1,\ldots,s_4}\sum_{t_1,\ldots,t_4}\prod_{i=1}^{4}\overline{\xi_{\tau_i}(t_i)}\xi_{\sigma_i}(s_i)\prod_{j=1}^{L}V_{t^{(j)}s^{(j)}}. \tag*{(82)} ν 2 ( ξ s ) = ( 2 + 2 ⟨ ξ + ∣ ξ − ⟩ ) 4 1 σ , τ ∈ { + , − } 4 ∑ s 1 , … , s 4 ∑ t 1 , … , t 4 ∑ i = 1 ∏ 4 ξ τ i ( t i ) ξ σ i ( s i ) j = 1 ∏ L V t ( j ) s ( j ) . (82)
The term with all σ i , τ i \sigma_i,\tau_i σ i , τ i equal to + + + is ν 2 ( ξ + ) \nu_2(\xi_+) ν 2 ( ξ + ) , and the term with all of them equal to − - − also equals ν 2 ( ξ + ) \nu_2(\xi_+) ν 2 ( ξ + ) by ξ − ( s ) = ξ + ( s ˉ ) \xi_-(s)=\xi_+(\bar{s}) ξ − ( s ) = ξ + ( s ˉ ) and Eq. (56) . Here s ˉ \bar{s} s ˉ is the configuration obtained from s s s by flipping all spins.
Each remaining term contains rows s i , t i s_i,t_i s i , t i from both ∣ ξ + ⟩ |\xi_+\rangle ∣ ξ + ⟩ and ∣ ξ − ⟩ |\xi_-\rangle ∣ ξ − ⟩ . At a site j j j with L + 1 2 − j ≫ 1 / η \frac{L+1}{2}-j\gg1/\eta 2 L + 1 − j ≫ 1/ η , the spins in the rows from ∣ ξ + ⟩ |\xi_+\rangle ∣ ξ + ⟩ are mostly down and those from ∣ ξ − ⟩ |\xi_-\rangle ∣ ξ − ⟩ are mostly up. The eight spins of s s s and t t t in a remaining term are thus not all equal, and Eq. (52) and the entries above it give V t ( j ) s ( j ) ≤ 1 / 4 V_{t^{(j)}s^{(j)}}\leq1/4 V t ( j ) s ( j ) ≤ 1/4 , whereas s ( j ) = t ( j ) = ↓ ↓ ↓ ↓ s^{(j)}=t^{(j)}=\downarrow\downarrow\downarrow\downarrow s ( j ) = t ( j ) =↓↓↓↓ and V t ( j ) s ( j ) = 1 V_{t^{(j)}s^{(j)}}=1 V t ( j ) s ( j ) = 1 in ν 2 ( ξ + ) \nu_2(\xi_+) ν 2 ( ξ + ) (Figure S4 ). An up spin in a row from ∣ ξ + ⟩ |\xi_+\rangle ∣ ξ + ⟩ or a down spin in a row from ∣ ξ − ⟩ |\xi_-\rangle ∣ ξ − ⟩ can make V t ( j ) s ( j ) = 1 V_{t^{(j)}s^{(j)}}=1 V t ( j ) s ( j ) = 1 , but it multiplies the amplitude of its row by p j / ( 1 − p j ) ≪ 1 / 4 \sqrt{p_j/(1-p_j)}\ll1/4 p j / ( 1 − p j ) ≪ 1/4 . The same holds for j − L + 1 2 ≫ 1 / η j-\frac{L+1}{2}\gg1/\eta j − 2 L + 1 ≫ 1/ η with up and down interchanged and p j p_j p j replaced with 1 − p j 1-p_j 1 − p j . Each of the L − O ( 1 / η ) L-O(1/\eta) L − O ( 1/ η ) sites away from the center thus multiplies the remaining terms by at most about 1 / 4 1/4 1/4 compared with ν 2 ( ξ + ) \nu_2(\xi_+) ν 2 ( ξ + ) , so the remaining terms are negligible for L η ≫ 1 L\eta\gg1 L η ≫ 1 .
Figure S4. Examples of the arrays of spins in the ( σ , τ ) (\sigma,\tau) ( σ , τ ) terms of ν 2 ( ξ s ) \nu_2(\xi_s) ν 2 ( ξ s ) . The upper four rows are s 1 , … , s 4 s_1,\ldots,s_4 s 1 , … , s 4 , the lower four rows are t 1 , … , t 4 t_1,\ldots,t_4 t 1 , … , t 4 , and the signs in parentheses are σ i \sigma_i σ i and τ i \tau_i τ i . Up spins are shown in gray, and the spins in the central region of about 1 / η 1/\eta 1/ η columns are not drawn. The labels j ≃ 1 j\simeq1 j ≃ 1 and j ≃ L j\simeq L j ≃ L indicate the columns with ∣ j − L + 1 2 ∣ ≫ 1 / η \left|j-\frac{L+1}{2}\right|\gg1/\eta j − 2 L + 1 ≫ 1/ η . In these columns, each spin is taken in the orientation with the larger amplitude, which is down at j ≃ 1 j\simeq1 j ≃ 1 and up at j ≃ L j\simeq L j ≃ L in the rows from ∣ ξ + ⟩ |\xi_+\rangle ∣ ξ + ⟩ and the reverse in the rows from ∣ ξ − ⟩ |\xi_-\rangle ∣ ξ − ⟩ . The bottom row shows V t ( j ) s ( j ) V_{t^{(j)}s^{(j)}} V t ( j ) s ( j ) of column j j j , which is 1 for all columns in (a) and 1 / 4 1/4 1/4 for all columns in (b).
The product of the amplitudes of ∣ ξ + ⟩ |\xi_+\rangle ∣ ξ + ⟩ and ∣ ξ − ⟩ |\xi_-\rangle ∣ ξ − ⟩ for the same configuration s s s contains one factor p j \sqrt{p_j} p j and one factor 1 − p j \sqrt{1-p_j} 1 − p j at each site and is therefore independent of s s s . The overlap is thus ⟨ ξ + ∣ ξ − ⟩ = ( L L / 2 ) Z − 1 ∏ j p j ( 1 − p j ) \langle\xi_+|\xi_-\rangle=\binom{L}{L/2}Z^{-1}\prod_j\sqrt{p_j(1-p_j)} ⟨ ξ + ∣ ξ − ⟩ = ( L /2 L ) Z − 1 ∏ j p j ( 1 − p j ) . Since ( L L / 2 ) ≤ 2 L \binom{L}{L/2}\leq2^L ( L /2 L ) ≤ 2 L , Z − 1 Z^{-1} Z − 1 is of order ν 1 / 2 \nu^{1/2} ν 1/2 by Eq. (68) , and 2 p j ( 1 − p j ) = 1 / cosh ( η ( j − L + 1 2 ) ) 2\sqrt{p_j(1-p_j)}=1/\cosh(\eta(j-\frac{L+1}{2})) 2 p j ( 1 − p j ) = 1/ cosh ( η ( j − 2 L + 1 )) is exponentially small for ∣ j − L + 1 2 ∣ ≫ 1 / η \left|j-\frac{L+1}{2}\right|\gg1/\eta j − 2 L + 1 ≫ 1/ η , the overlap is also negligible. In the large-L L L limit, we thus obtain
ν 2 ( ξ s ) = 2 ν 2 ( ξ + ) 2 4 = ν 2 ( ξ + ) 8 , (83) \nu_2(\xi_s)=\frac{2\nu_2(\xi_+)}{2^4}=\frac{\nu_2(\xi_+)}{8}, \tag*{(83)} ν 2 ( ξ s ) = 2 4 2 ν 2 ( ξ + ) = 8 ν 2 ( ξ + ) , (83)
which together with ν 2 ( ξ + ) \nu_2(\xi_+) ν 2 ( ξ + ) yields Eq. (19) of the main text.
Table S1 compares Eq. (19) with the MRE sampled from the ground state of the chain without boundary fields. The deviation is 1.8 standard errors at ( L , Δ ) = ( 64 , − 1.02 ) (L,\Delta)=(64,-1.02) ( L , Δ ) = ( 64 , − 1.02 ) and 0.1 standard errors at ( 128 , − 1.005 ) (128,-1.005) ( 128 , − 1.005 ) .
Table S1. Equation (19) of the main text compared with the MRE sampled from the ground state of the chain without boundary fields. The errors are one standard error. Both rows have L η ≃ 12.8 L\eta\simeq12.8 L η ≃ 12.8 .
Numerical details
State preparation and checks for convergence
At Δ = − 1 \Delta=-1 Δ = − 1 , the input of the sampling method is the exact MPS of the ground state over the 2 L 2L 2 L fermionic modes, with bond dimension D = L D=L D = L and no truncation. For Δ < − 1 \Delta<-1 Δ < − 1 , we obtained the ground state at N ↑ = N ↓ = L / 2 N_{\uparrow}=N_{\downarrow}=L/2 N ↑ = N ↓ = L /2 by two-site DMRG implemented in TeNPy [57 , 58 ] with bond dimension χ = 256 \chi=256 χ = 256 , and projected the result onto the eigenspace of R R R with eigenvalue ( − 1 ) L / 2 (-1)^{L/2} ( − 1 ) L /2 given by Eq. (36) . The projection is necessary because the two domain configurations are nearly degenerate on a finite chain and DMRG can converge to a symmetry-broken state. The energy variance of the projected states is below 3 × 10 − 12 3\times10^{-12} 3 × 1 0 − 12 for all ( L , Δ ) (L,\Delta) ( L , Δ ) , and the weight discarded by the DMRG truncation is below 10 − 15 10^{-15} 1 0 − 15 . We then compressed the spin-chain MPS to the smallest bond dimension for which the discarded weight, i.e., the sum of the squared discarded Schmidt values over all bonds, does not exceed ε = 10 − 10 \varepsilon=10^{-10} ε = 1 0 − 10 , and converted it into an MPS over the 2 L 2L 2 L fermionic modes, which serves as the input of the sampling method. Figure S5 shows the resulting bond dimension D D D , which is largest near the maximum of M 2 M_2 M 2 and saturates at larger L L L . At Δ = − 1 \Delta=-1 Δ = − 1 , Figure S6 shows that M 2 M_2 M 2 at L = 64 L=64 L = 64 does not change beyond the statistical error when ε \varepsilon ε is varied from 10 − 12 10^{-12} 1 0 − 12 to 10 − 3 10^{-3} 1 0 − 3 and deviates from the exact value only at ε = 10 − 2 \varepsilon=10^{-2} ε = 1 0 − 2 . At Δ = − 1.005 \Delta=-1.005 Δ = − 1.005 , Figure S6 and (Figure S6 ) show that M 2 M_2 M 2 at L = 64 L=64 L = 64 does not change beyond the statistical error when ε \varepsilon ε is varied over the same range or χ \chi χ from 16 to 256. The value ε = 10 − 10 \varepsilon=10^{-10} ε = 1 0 − 10 used for the data at Δ < − 1 \Delta<-1 Δ < − 1 is thus far below the discarded weight at which M 2 M_2 M 2 starts to change.
Figure S5. Bond dimension D D D of the fermionic MPS used as the input of the sampling. At Δ = − 1 \Delta=-1 Δ = − 1 , the exact Dicke MPS with D = L D=L D = L is used without truncation. At Δ = − 1.02 \Delta=-1.02 Δ = − 1.02 and − 1.005 -1.005 − 1.005 , the projected DMRG state with χ = 256 \chi=256 χ = 256 is compressed with ε = 10 − 10 \varepsilon=10^{-10} ε = 1 0 − 10 .
Figure S6. Dependence of the sampled MRE at L = 64 L=64 L = 64 on the approximations of the input state. (a) The exact Dicke MPS at Δ = − 1 \Delta=-1 Δ = − 1 compressed with the discarded weight ε = 10 − 2 , … , 10 − 12 \varepsilon=10^{-2},\ldots,10^{-12} ε = 1 0 − 2 , … , 1 0 − 12 , plotted against the resulting bond dimension D D D , which increases as ε \varepsilon ε decreases; the rightmost point is the uncompressed MPS and the line is the exact value. (b) The projected DMRG state at Δ = − 1.005 \Delta=-1.005 Δ = − 1.005 with χ = 256 \chi=256 χ = 256 compressed with the same values of ε \varepsilon ε and plotted against D D D . The band is one standard error around M ˉ 2 \bar{M}_2 M ˉ 2 at ε = 10 − 12 \varepsilon=10^{-12} ε = 1 0 − 12 , the rightmost point. (c) The dependence on the DMRG bond dimension χ \chi χ at Δ = − 1.005 \Delta=-1.005 Δ = − 1.005 with ε = 10 − 12 \varepsilon=10^{-12} ε = 1 0 − 12 ; the band is the same as in (b).
Sampling cost
The runtime of the sampling is the time per sample multiplied by the number of samples N \mathcal{N} N needed for a target standard error ϵ M \epsilon_M ϵ M of M 2 M_2 M 2 . We discuss the two factors separately for the states in Figure 2 (a), and quote N \mathcal{N} N for ϵ M = 0.01 \epsilon_M = 0.01 ϵ M = 0.01 throughout.
Time per sample
Figure S7 shows the number N o p N_{\mathrm{op}} N op of floating-point operations per sample, i.e., per evaluation of h h h , counted over all matrix products in our implementation. Since the exact MPS at Δ = − 1 \Delta= -1 Δ = − 1 has D = L D = L D = L , setting n = 2 L n = 2L n = 2 L and D = L D = L D = L in O ( n D 3 ) O(nD^3) O ( n D 3 ) gives N o p ∝ L 4 N_{\mathrm{op}} \propto L^4 N op ∝ L 4 at large L L L . The curve 1.23 L 4 1.23L^4 1.23 L 4 , fitted to the data for L ≥ 64 L \ge64 L ≥ 64 , agrees with them within 3%. At Δ < − 1 \Delta< -1 Δ < − 1 , N o p N_{\mathrm{op}} N op stops growing once D D D saturates, because the bond dimension is large only near the domain wall and remains small in the polarized regions. Even for the exact MPS at Δ = − 1 \Delta= -1 Δ = − 1 and L = 128 L = 128 L = 128 , the most expensive case, one sample takes 24 ms on average on one core of an Intel Xeon Gold 5318Y, so that the 1.4 × 10 7 1.4 \times10^7 1.4 × 1 0 7 samples needed for ϵ M = 0.01 \epsilon_M = 0.01 ϵ M = 0.01 amount to a total CPU time of about 93 hours (note that this sampling can be parallelized on separate cores).
Figure S7. Number N o p N_{\mathrm{op}} N op of floating-point operations in the matrix products per sample for the states in Figure 2 (a), at L = 8 , 16 , 32 , 64 , 128 L = 8, 16, 32, 64, 128 L = 8 , 16 , 32 , 64 , 128 for Δ < − 1 \Delta< -1 Δ < − 1 . The dashed line is 1.23 L 4 1.23L^4 1.23 L 4 , obtained by setting n = 2 L n = 2L n = 2 L and D = L D = L D = L in O ( n D 3 ) O(nD^3) O ( n D 3 ) , with the coefficient fitted to the points at Δ = − 1 \Delta= -1 Δ = − 1 and L ≥ 64 L \ge64 L ≥ 64 .
Number of samples
The number of samples needed for ϵ M \epsilon_M ϵ M is N = Var q ( h ) / ( ϵ M 2 ν 2 2 ) \mathcal{N} = \operatorname{Var}_q(h)/(\epsilon_M^2\nu_2^2) N = Var q ( h ) / ( ϵ M 2 ν 2 2 ) . Figure S8 shows that N ≃ e M 2 / ϵ M 2 \mathcal{N} \simeq e^{M_2}/\epsilon_M^2 N ≃ e M 2 / ϵ M 2 is determined by M 2 M_2 M 2 alone for all values of Δ \Delta Δ . This follows from the fact that the ratio Var q ( h ) / ν 2 2 \operatorname{Var}_q(h)/\nu_2^2 Var q ( h ) / ν 2 2 lies between 0.85 and 1 as shown in Figure S8 . At Δ = − 1 \Delta= -1 Δ = − 1 , the N \mathcal{N} N evaluated from the samples grows as L 3 / 2 L^{3/2} L 3/2 and reaches 1.4 × 10 7 1.4 \times10^7 1.4 × 1 0 7 at L = 128 L = 128 L = 128 . At Δ < − 1 \Delta< -1 Δ < − 1 , N \mathcal{N} N saturates together with M 2 M_2 M 2 , at about 2.1 × 10 6 2.1 \times10^6 2.1 × 1 0 6 for Δ = − 1.02 \Delta= -1.02 Δ = − 1.02 and 6.5 × 10 6 6.5 \times10^6 6.5 × 1 0 6 for Δ = − 1.005 \Delta= -1.005 Δ = − 1.005 .
Figure S8. Number of samples for the states in Figure 2 (a) in the main text. (a) The number of samples N = Var q ( h ) / ( ϵ M 2 ν 2 2 ) \mathcal{N} = \operatorname{Var}_q(h)/(\epsilon_M^2\nu_2^2) N = Var q ( h ) / ( ϵ M 2 ν 2 2 ) needed for ϵ M = 0.01 \epsilon_M = 0.01 ϵ M = 0.01 , evaluated from the sample variance of h h h and the sampled purity of each state. The dashed lines show e M 2 / ϵ M 2 e^{M_2}/\epsilon_M^2 e M 2 / ϵ M 2 , with the exact M 2 M_2 M 2 at Δ = − 1 \Delta= -1 Δ = − 1 and the sampled M 2 M_2 M 2 at Δ < − 1 \Delta< -1 Δ < − 1 . (b) The ratio of the sample variance of h h h to the purity.
Number of samples for an extensive MRE
In this section, we examine the number of samples N \mathcal{N} N for ground states whose MRE is extensive, using a chain of spinless fermions. We take a chain of L L L sites with one fermionic mode c j c_j c j per site, i.e., n = L n = L n = L modes, and the Hamiltonian
H t V = − t ∑ j = 1 L ( c j + 1 † c j + c j † c j + 1 ) + V ∑ j = 1 L n j n j + 1 , (84) H_{tV}=-t\sum_{j=1}^{L}\left(c_{j+1}^{\dagger}c_j+c_j^{\dagger}c_{j+1}\right)+V\sum_{j=1}^{L}n_jn_{j+1}, \tag*{(84)} H t V = − t j = 1 ∑ L ( c j + 1 † c j + c j † c j + 1 ) + V j = 1 ∑ L n j n j + 1 , (84)
where n j = c j † c j n_j=c_j^{\dagger}c_j n j = c j † c j . We consider the ground state at half filling, i.e., with L / 2 L/2 L /2 fermions for even L L L , and impose the boundary condition c L + 1 = ( − 1 ) L / 2 + 1 c 1 c_{L+1}=(-1)^{L/2+1}c_1 c L + 1 = ( − 1 ) L /2 + 1 c 1 . We parametrize V V V by the Luttinger parameter K K K of the ground state, V = − 2 t cos [ π / ( 2 K ) ] V=-2t\cos[\pi/(2K)] V = − 2 t cos [ π / ( 2 K )] for − 2 t < V ≤ 2 t -2t < V \le2t − 2 t < V ≤ 2 t [59 ] , and use K = 2 , 3 , 4 , 5 K = 2, 3, 4, 5 K = 2 , 3 , 4 , 5 . By the Jordan-Wigner transformation followed by a rotation of the spins on the even sites by π \pi π about the z z z axis, H t V H_{tV} H t V with this boundary condition corresponds to the XXZ chain with periodic boundary conditions and anisotropy V / ( 2 t ) V/(2t) V / ( 2 t ) , which ranges from − 0.71 -0.71 − 0.71 to − 0.95 -0.95 − 0.95 for K = 2 K = 2 K = 2 to 5 5 5 . The Jordan-Wigner transformation represents each spin by one fermionic mode, whereas the main text represents it by the two modes c j ↑ , c j ↓ c_{j\uparrow}, c_{j\downarrow} c j ↑ , c j ↓ with one fermion per site, and the MRE of a spin state depends on this choice. For example, the ground state at V = 0 V = 0 V = 0 is Gaussian in the present representation, whereas in the representation of the main text it satisfies Eq. (37) and is thus non-Gaussian.
We obtained the ground state by two-site DMRG with particle-number conservation implemented in TeNPy [57 , 58 ] with bond dimension up to χ = 768 \chi= 768 χ = 768 . We then compressed the MPS to the smallest bond dimension for which the discarded weight defined in Sec. SIII A does not exceed ϵ = 10 − 7 \epsilon= 10^{-7} ϵ = 1 0 − 7 . The total weight discarded by the DMRG truncation and the compression is below 3 × 10 − 6 3 \times10^{-6} 3 × 1 0 − 6 for all states. We quote N \mathcal{N} N for ϵ M = 0.01 \epsilon_M = 0.01 ϵ M = 0.01 , evaluated as in Figure S8 .
As in Sec. SIII B, N \mathcal{N} N scales as e M 2 2 e^{M_2^2} e M 2 2 rather than as the upper bound e M 2 2 / ϵ M 2 e^{M_2^2}/\epsilon_M^2 e M 2 2 / ϵ M 2 , which implies that the practical sampling cost is much lower than the worst-case bound. Figure S9 shows that M 2 M_2 M 2 grows linearly with L L L at large L L L for K = 2 K = 2 K = 2 and 5 5 5 , and reaches 7.5 7.5 7.5 at L = 120 L = 120 L = 120 for K = 5 K = 5 K = 5 . Figure S9 shows that N \mathcal{N} N grows exponentially with L L L at large L L L and reaches 8.3 × 10 5 8.3 \times10^5 8.3 × 1 0 5 for K = 2 K = 2 K = 2 and 7.2 × 10 6 7.2 \times10^6 7.2 × 1 0 6 for K = 5 K = 5 K = 5 at L = 120 L = 120 L = 120 . Figure S9 shows that the points for K = 2 , 3 , 4 , 5 K = 2, 3, 4, 5 K = 2 , 3 , 4 , 5 lie on a single curve close to 0.45 e M 2 2 / ϵ M 2 0.45 e^{M_2^2}/\epsilon_M^2 0.45 e M 2 2 / ϵ M 2 for M 2 ≳ 2 M_2 \gtrsim2 M 2 ≳ 2 . The largest N \mathcal{N} N among these points is 1.03 × 10 7 1.03 \times10^7 1.03 × 1 0 7 , for K = 4 K = 4 K = 4 at L = 120 L = 120 L = 120 . Here 0.45 0.45 0.45 is the geometric mean of Var q ( h ) / ν 2 2 \operatorname{Var}_q(h)/\nu_2^2 Var q ( h ) / ν 2 2 over the 82 82 82 points with M 2 ≥ 2 M_2 \ge2 M 2 ≥ 2 , where Var q ( h ) \operatorname{Var}_q(h) Var q ( h ) and ν 2 \nu_2 ν 2 are evaluated from the samples.
Figure S9. Number of samples for the ground state of Eq. (84) at half filling. (a) Sampled MRE as a function of L L L for the Luttinger parameters K = 2 K=2 K = 2 and 5 5 5 , connected by solid curves as guides. The standard errors are smaller than 0.01 for all points. (b) The number of samples N \mathcal{N} N needed for ϵ M = 0.01 \epsilon_M=0.01 ϵ M = 0.01 for the states in (a). The dotted lines show 0.45 e M 2 / ϵ M 2 0.45 e^{M_2}/\epsilon_M^2 0.45 e M 2 / ϵ M 2 with the sampled M 2 M_2 M 2 at the points with M 2 ≥ 2 M_2 \ge2 M 2 ≥ 2 . (c) N \mathcal{N} N against the sampled M 2 M_2 M 2 for K = 2 , 3 , 4 , 5 K=2,3,4,5 K = 2 , 3 , 4 , 5 and 4 ≤ L ≤ 120 4 \le L \le120 4 ≤ L ≤ 120 (L ≤ 96 L \le96 L ≤ 96 for K = 3 K=3 K = 3 ; 133 points). The solid line is the upper bound e 2 M 2 / ϵ M 2 e^{2M_2}/\epsilon_M^2 e 2 M 2 / ϵ M 2 , and the dotted line is 0.45 e M 2 / ϵ M 2 0.45 e^{M_2}/\epsilon_M^2 0.45 e M 2 / ϵ M 2 .