Stitching Local Classical Shadows into Consistent Quantum States

Measuring an $n$-qubit quantum state completely takes a number of experiments that grows like $4^n$, so nobody characterizes large devices this way. Classical shadows avoid this. You measure the state after random rotations, and each outcome becomes a cheap "snapshot" from which the expectation of any local observable can be estimated, with a sample cost that does not depend on system size (Predicting Features of Quantum Systems using Classical Shadows). The catch is that the snapshots describe no physical state. Estimated local density matrices (the small matrices that summarize the state of a few neighboring qubits) can have negative eigenvalues. Two overlapping patches can also disagree about the qubits they share. Each patch is estimated alone, so information about a shared qubit collected through one patch never improves the estimate in the other.

We propose to treat shadow post-processing the way multiscale finite-element methods treat heterogeneous PDEs. We cover the system with small overlapping patches, compress each patch to a few dominant local modes, and stitch the patches together with an augmented Lagrangian. An augmented Lagrangian is a constrained-optimization method that assigns a "price" to each violated constraint and adjusts it iteratively. Here the constraints are that every patch estimate is a valid density matrix and that overlapping patches agree on their shared marginals. The step sizes and penalty weight adapt automatically to the unknown shadow noise level. The stitched estimate is a set of physical, mutually consistent local marginals. It is computed in parallel, one small eigen-decomposition per patch, and never forms a global $2^n$ object. The size of each price shows where a patch is too small for the state's correlations.

Core Claim

Enforcing positivity and overlap-consistency jointly across patches pools the samples of neighboring patches. At a fixed shot budget, this should lower the error on local marginals, energies, and nonlinear patch quantities such as Rényi entropies. The gain over raw shadows should be clear, and over independent per-patch projection it should be measurable. For states with finite correlation length, the method should match global tensor-network projection at far lower classical cost. It should also extend to two-dimensional disordered systems, where a one-dimensional chain of tensors (a matrix product operator) is a poor fit.

Concretely, let $\hat\rho_i$ be the raw shadow estimate on patch $\omega_i$ ($k$ qubits) and $\sigma_i$ the stitched estimate. We solve

$$\min_{\{\sigma_i\}} \sum_i \|\sigma_i-\hat\rho_i\|_F^2 \quad \text{s.t.}\quad \sigma_i \succeq 0,\ \operatorname{Tr}\sigma_i=1,\ \operatorname{Tr}_{\omega_i\setminus\omega_{ij}}\sigma_i=\operatorname{Tr}_{\omega_j\setminus\omega_{ij}}\sigma_j,$$

where $\omega_{ij}$ is the overlap of patches $i$ and $j$ and $\operatorname{Tr}_{S}$ traces out the qubits in $S$. We attach multipliers $\Lambda_{ij}$ to the consistency constraints and add a quadratic penalty of weight $\beta$. The problem then splits into independent patch subproblems. Each one is a projection of a shifted $2^k\times 2^k$ matrix onto the set of valid density matrices. The multipliers are updated from the overlap mismatches.

This is a relaxation. Local consistency does not guarantee that some global state reproduces all the marginals (the quantum marginal problem). We therefore claim physical validity and consistency of the marginals, not global validity.

Where each direction enters

The multiscale literature supplies the design pattern rather than the finite elements. Several papers build bases on each coarse block or oversampled patch by solving a local generalized eigenproblem and keeping the dominant modes: Generalized multiscale finite element methods (GMsFEM), Randomized Oversampling for Generalized Multiscale Finite Element Methods, and Efficient numerical method for the Schrödinger equation with high-contrast potentials. The last shows that constraint-energy-minimizing bases decay exponentially outside their patch. That decay is why truncating to finite patches works.

We borrow three things.

  • Overlapping patches with oversampling. Each patch covers a region plus a surrounding buffer.
  • Local spectral compression. Each patch estimate is restricted to rank $r_i$, chosen by the eigenvalue gap, as in GMsFEM truncation.
  • Oversampling size as a tunable quantity. Its analogue here is patch size relative to correlation length.

The multiscale work also constrains the design. Iterative oversampling technique for constraint energy minimizing generalized multiscale finite element method in the mixed formulation documents the failure mode we must handle: undersized patches destroy accuracy, and oversized ones inflate cost. Our analogue of iterative oversampling is to grow patches wherever the converged $\|\Lambda_{ij}\|$ is large. A large price means the data on the two sides of an overlap are fighting.

Lagrangian relaxation supplies the coupling. Dual decomposition over overlapping subproblems is standard for graphical-model inference (Tahrima Rahman et al.). The augmented form is what allows exact consistency at a finite penalty, which a pure quadratic penalty cannot achieve without its weight growing without bound.

For patches beyond roughly 10 qubits, the rank-$k$ weak proximal oracle of Faster Projection-Free Augmented Lagrangian Methods via Weak Proximal Oracle replaces the full eigen-decomposition. That work uses a manually scheduled penalty and dual step, and applies it to Max-Cut and covariance estimation rather than quantum marginals.

Parameter-free optimization is a supporting ingredient, and we test it as one. The right $\beta$ and dual step depend on the shadow noise. That noise depends on the unknown state, the patch size (shadow variance grows with patch weight), and the shot count. It shifts further if shots are streamed. We adapt the primal-dual steps with the local-curvature estimate of A first-order primal-dual method with adaptivity to local smoothness (APDA). In the streaming setting we instead use AdaGrad-type steps, which provably adapt to unknown affine noise variance (SGD with AdaGrad Stepsizes: Full Adaptivity with High Probability to Unknown Parameters, Unbounded Gradients and Affine Variance).

APDA needs a bound on the norm of the constraint operator. Here the operator is a difference of partial traces, so the bound is known analytically. That removes APDA's main open limitation for this problem instead of solving it in general. The remaining tuning burden is $\beta$ and the ratio between primal and dual steps. We adapt $\beta$ from the ratio of primal to dual residuals and report whether this matters.

The proposal also addresses a tension the file identifies. Neural-Shadow Quantum State Tomography (NSQST) relies on shadow losses keeping unbiased gradients. Enhancing quantum state reconstruction with structured classical shadows shows that raw shadows are unphysical and that projection introduces bias. Our method keeps the data term unbiased and places all physicality into constraints. We measure the bias that the constraints introduce against the variance they remove.

Research Program

We will build a distributed solver that runs one worker per patch. Each worker performs an eigen-decomposition, or a rank-$r_i$ oracle for large patches. The workers exchange overlap marginals and update the multipliers using the adaptive rules above.

On the analysis side, we will bound how much variance stitching removes. When each qubit is covered by $c$ patches, averaging through the consistency constraints should cut the variance of shared-marginal estimates by up to a factor of about $c$. That factor comes from pooling $c$ roughly independent estimates. The cut is smaller when the patches share snapshots, so we will analyze both independent and shared shot allocations.

We will also characterize the bias from positivity projection as a function of shot count. And we will test whether the multiplier-based patch-growth rule tracks the true correlation length of states whose correlation length is known.

Baselines

The naive reference point is raw classical shadows, reading each local marginal directly from snapshots (Predicting Features of Quantum Systems using Classical Shadows). It uses the same snapshots and no post-processing. Beating it means lower marginal trace-distance error and lower energy error at every shot budget, together with valid (positive) marginals.

The key ablation is independent per-patch projection. We project each $\hat\rho_i$ onto valid density matrices separately and do not couple the patches. It uses the same patches, ranks, and snapshots. This isolates the Lagrangian stitching. Beating it means a statistically significant error reduction on shared-qubit marginals, plus exact overlap consistency, which the ablation lacks by construction.

The strongest existing method is projected classical shadows onto matrix product operators (MPO-PCS) from Enhancing quantum state reconstruction with structured classical shadows. It projects shadows onto a global tensor-network manifold and reports recovery with $O(n^2)$ total copies for matrix-product states, improving on an earlier $O(n^3)$ bound. No reported result was found on Lacuna for its fixed-budget marginal error or wall-clock cost on these benchmarks, so we will rerun it. It gets the same snapshots, and its bond dimension is tuned on a held-out shot set with the same tuning budget as our patch size and rank. We count beating it as matching its marginal error in one dimension at lower wall-clock time and memory, and beating it outright on two-dimensional states.

A second strong competitor is NSQST (Neural-Shadow Quantum State Tomography). It trains a Transformer model of the quantum state on a shadow-estimated infidelity loss. It reports orders-of-magnitude lower infidelity than cross-entropy training, and success on 40-qubit GHZ stabilizers where direct shadows fail. We run it with matched snapshots and a learning-rate grid of equal budget, and compare on patch-supported quantities.

The parameter-free ablation replaces our adaptive steps with an augmented Lagrangian whose $\beta$ and dual step come from a grid search. It receives the same total gradient evaluations, grid cost included. Parameter-freeness counts as a contribution only if the adaptive version matches the best grid point without the grid.

Why not just…?

Why not just project each patch independently? This is the most serious threat. At small patch overlaps, independent projection may capture most of the gain, because positivity alone removes much of the variance. The per-patch ablation above settles it directly. If stitching adds less than the run-to-run noise, the Lagrangian coupling is not the contribution. We would then report the result as a study of projection alone.

Why not just use a quadratic penalty with a large weight? A penalty reaches exact consistency only as its weight goes to infinity, and that makes the problem badly conditioned. Enhanced physics-informed neural networks with Augmented Lagrangian relaxation method (AL-PINNs) documents this failure in constrained training. We include a penalty sweep and report the consistency residual against conditioning, so the claim is checked rather than assumed.

Why not just solve the stitching problem with an off-the-shelf semidefinite solver? For a 1D chain of 20 qubits with 4-qubit patches, a generic solver is probably fine and may be faster. Our argument concerns scale: thousands of patches, 10-qubit patches that need rank-limited oracles, and parallel or streaming operation. We will report the crossover size where the decomposed solver wins. Below that size, we concede the point.

Why not just use MPO-PCS or a neural ansatz? For one-dimensional states with low entanglement, MPO-PCS may be as accurate. Our advantage would then be cost and parallelism, not accuracy. The two-dimensional disordered experiments are where the proposal must show an accuracy gain. GHZ-type states with long-range coherence are a regime where local stitching cannot win, and we report that failure explicitly. NSQST's reported success on 40-qubit GHZ stabilizers is exactly the non-local quantity our method does not target.

Proposed Experiments

Test states. We use states from the file's benchmarks:

  • 1D Ising thermal states and random matrix-product states from the PCS paper;
  • Heisenberg antiferromagnet ground states from NSQST;
  • GHZ states, as a planned failure case.

We add 2D random-field Ising ground states with high-contrast disorder, modeled on the random-inclusion potentials of Efficient numerical method for the Schrödinger equation with high-contrast potentials, with contrast from 1 to $10^3$. These have no reported results on Lacuna. Exact reference values come from exact diagonalization up to about 20 qubits. Beyond that, we sample Pauli-basis shadows from simulated matrix-product states up to 100 qubits in 1D.

Metrics. We measure average and worst-case trace distance of patch marginals, energy error, Rényi-2 entropy error on patches, and the overlap-consistency residual, as functions of shot count and wall-clock time.

Decisive checks. Three results would decide the proposal.

  • Stitching must beat independent projection on shared marginals, by a margin that grows with patch coverage $c$ roughly as the pooling argument predicts.
  • The multiplier-based patch-growth rule must pick patch sizes that track the known correlation length across the disorder sweep. It must also flag GHZ as unrepresentable, rather than silently returning a wrong answer.
  • The adaptive-step solver must reach the accuracy of the grid-tuned augmented Lagrangian with no tuning, and do so across shot budgets spanning two orders of magnitude.

If the first check fails, the idea as posed is wrong. If only the third fails, parameter-free steps are not needed here.