Skip to content

Migrate the charge-conserving deep thermalization reproduction (Figures 10–11) - #17

Open
QingyunQian wants to merge 3 commits into
tensorcircuit:mainfrom
QingyunQian:codex/charge-conserving-deep-thermalization
Open

QingyunQian wants to merge 3 commits into
tensorcircuit:mainfrom
QingyunQian:codex/charge-conserving-deep-thermalization

Conversation

@QingyunQian

Copy link
Copy Markdown

Summary

Closes #15.

Migrate QingyunQian's unpublished TensorCircuit-NG draft to TenCirLab and reproduce Figures 10 and 11 of Chang et al. The example measures how close the ensemble on two unmeasured spins is to the generalized Scrooge ensemble predicted from the input charge fluctuations and bath measurement basis. The source commit is recorded in meta.yaml. Paper

Plan

Unit Source Cost at the paper's scale
Sector-Haar states, empirical two-copy moment and charge-conditioned GSE New tencirlab.projected_ensembles One complex state per draw, 1,024 bath columns per Gram block; at $N=24$ the input state occupies 256 MiB
Charge-preserving Haar blocks and alternating bond updates JAX complex Haar matrices and TensorCircuit gates in tencirlab.random_circuits 5.25 s per layer at $N=24$ on four CPU cores, about 146 h over the full Figure 10 profile
Rotated bath readout and trace distance TensorCircuit gates, projected moment and a $10\times10$ Hermitian eigensolve 10.01 s per readout at $N=24$, about 282 h over the full profile
Initial states, scans, fits, figures and numerical archive Paper-specific composition All six Figure 11 sizes and all 121 angle pairs run by default

Results

Observable Paper TenCirLab Earlier draft
Fig. 10 plateau for $N=8,10,12,14$ ≈0.188, 0.0991, 0.0508, 0.0260 0.1881, 0.09842, 0.05035, 0.02579 0.1830, 0.0956, 0.0508, 0.0265
Fig. 10 fit exponent in $2^{-aN}$ 0.49 (9 sizes) 0.478 (4 sizes) 0.464 (4 sizes)
Fig. 11(b) angle average at $N=10,20$ ≈0.0902, 0.00342 0.09542, 0.003021 0.09016, 0.002964
Fig. 11(b) fit exponent 0.48 0.498 0.491

Paper distances are approximate readings from plotted markers. The exponents are the published fits. The new data use independent JAX random draws. The four Figure 10 plateaus agree within 1% of the published marker readings. Every angle pair in Figure 11 decreases at each size step. At N=20 the angle average is about 12% below the plotted marker.

Figure 10 uses 24 circuits through 128 layers for each of four sizes. Shading gives one standard error across circuits. The paper's inset appears as the right panel here. Our red points average depths 96, 112 and 128 within each circuit. The paper reaches $N=24$ with 128 circuits per size and its plotted traces extend to about 600 layers. Paper Figure 10

Paper Figure 10 TenCirLab
Chang et al., Figure 10 Reproduced Figure 10

Figure 11 uses the published size and angle grid, with four independent sector-Haar states per input angle and size. Both figures use deterministic quadrature for the reference moment. The paper uses $10^8$ Monte Carlo draws for the Figure 10 reference. Paper Figure 11

Paper Figure 11 TenCirLab
Chang et al., Figure 11 Reproduced Figure 11
Scale Runtime and memory
Test 28 s on four logical CPU cores, 483 MiB peak RSS
Default 8 min 1 s on four logical CPU cores, 631 MiB peak RSS. An earlier 8 min 9 s run produced byte-identical figures and numerical data.
Paper Figure 10 estimate of 428 four-core wall-hours plus the default-size Figure 11. One large kernel needs about 1 GiB at $N=24$ (measured process peak 1.43 GiB). The 48-hour single-GPU target would require about nine times this four-core throughput. GPU throughput and the full profile are unmeasured.

The independent review identified the unverified single-GPU target. The reproduction is marked partial. The follow-up specifies the gate and readout timings needed to evaluate the paper-scale target. Component issue #16

Run from the repository root in the TenCirLab environment.

cd reproductions/2025_charge_conserving_deep_thermalization
python main.py
python main.py --scale test --out ./test-results
python verify.py

Checklist

  • Black, Pylint, all 10 tests, both affected CPU test-scale runs, their verifiers, the metadata checks and the strict documentation build pass.
  • All callers of the two new components are covered.
  • The regenerated figures, independent numerical comparisons and scale differences are documented.
  • The migration decisions and independent review are recorded. Change record

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reproduce: Deep Thermalization under Charge-Conserving Quantum Dynamics

1 participant