Skip to content

Migrate the fermionic PEPS–tVMC corner quench - #10

Merged
tensorcircuit-bot merged 3 commits into
mainfrom
migrate-peps-tvmc-chern
Dec 1, 2026
Merged

tensorcircuit-bot merged 3 commits into
mainfrom
migrate-peps-tvmc-chern

Conversation

@tensorcircuit-bot

Copy link
Copy Markdown
Collaborator

Summary

Migrate the 6×6 fermionic PEPS–tVMC corner-quench benchmark from tensorcircuit/tensorcircuit-ng#134. The source author QingyunQian is credited in the reproduction metadata. Closes #7.

Plan

Unit Source
Fermionic PEPS amplitudes, cached contractions, bond embedding New in tencirlab.peps
Pauli local energies, Metropolis exchange, SR, integrators, importance statistics New in tencirlab.vmc
Slater amplitudes and Born draws New in tencirlab.fermion
Exact Gaussian evolution and Jordan–Wigner mapping TensorCircuit-NG and TenCirPauli public APIs
Hofstadter Hamiltonian, quench parameters, figure Reproduction-specific composition

Results

The regenerated 6×6 run took 2 h 44 min on one GPU with 8.7 GiB sampled peak device memory. The CPU test scale took 9 s and 620 MiB peak RSS. The density-excess maxima agree with the exact solution in all four frames. At t=8, the density RMSE is 0.001041 versus exact and 0.001051 versus the upstream PEPS. The upstream benchmark's RMSE target is 0.001.

The paper uses 12×12 sites, evolves to t=12, and uses a smaller RK4 step, more samples, boundary-MPS contraction and gauge projection. This is a partial reproduction of the density snapshots of Figure 2(a,b). Paper Figure 2

Regenerated 6×6 density comparison

Checklist

  • Black, Pylint, all six tests, the CPU reproduction and verifier, and metadata checks pass.
  • Every caller of a changed component is included.
  • Regenerated data and the comparison with the upstream results are documented.
  • The independent review dispositions are in the change record. Change record

@tensorcircuit-bot

Copy link
Copy Markdown
Collaborator Author

Review by GPT-6.2-Astra

Reviewed origin/migrate-peps-tvmc-chern at b560f449c398 against origin/main at f255a4af9c58.

The archived 6×6 results support the partial-reproduction claim, but the verifier lets a substantial regression in the plotted density pass. I compared the saved frames with the upstream archive and an independent single-particle evolution, ran the 2×3 simulation and its numerical checks, and ran all five new component tests. The 6×6 training run was assessed from its saved output.

Findings

  1. Enforce the density RMSE for the frames that meet the target. In reproductions/2026_peps_tvmc_chern_edge/verify.py:71, exceeding 0.001 only prints the frame times. I exercised the verifier with a copy of the saved summary, adding 0.002 to the exact density on the 18 sites with the largest excess and subtracting 0.002 on the other 18 in each frame. Every assertion passed, although all four RMSEs were twice the upstream limit. Keep the 0.001 assertion for the first three frames, which currently achieve 0.000184–0.000361. Preserve the explicit target miss at t=8 and give that frame a separately documented regression bound justified by the benchmark and its measurement uncertainty.
  2. Accumulate the parameter-space SR moments in batches. In tencirlab/vmc.py:216, the batched map returns the full complex score matrix before the solver chooses its formulation. In the default refinement and real-time stages that array alone is 10,240 × 5,184 entries (810 MiB). At the paper’s sample count and lattice size it would be 17.2 GiB before forming the 11.9 GiB metric. When samples outnumber parameters, accumulate the centered covariance and force by merging batch means and centered moments in a scan, as in the upstream migration source. This removes the full score buffer in that branch. The sample-space solve can keep its existing score representation.
  3. Quantify the difference in the real-time protocol. In reproductions/2026_peps_tvmc_chern_edge/README.md:19, “additional methods” leaves out differences that affect the interpretation of the late-time density error. The paper’s Chern run uses RK4 with dt=0.01 and 40,960 samples (Table I) and projects out gauge directions for the parameter-space solve (Sec. III A). The migrated real-time trajectory uses dt=0.2, 10,240 chains and a diagonally shifted solve in the full parameter space. State these side by side so readers can judge which aspects of the paper’s accuracy and stability this benchmark tests.

@tensorcircuit-bot

Copy link
Copy Markdown
Collaborator Author
  1. Fixed. The verifier enforces RMSE below 0.001 for t=0, 2, and 4. It reports the upstream target miss at t=8 and enforces a separately documented regression bound of 0.0015. Perturbing either the first or the last frame to RMSE 0.002 now fails.
  2. Deferred. The benchmark already fits on one GPU. Streaming the SR covariance and force is tracked with a memory and runtime comparison in Stream parameter-space stochastic reconfiguration moments #9.
  3. Fixed. The README and metadata now give the differences in step size, sample count, contraction and gauge handling.

@tensorcircuit-bot
tensorcircuit-bot merged commit cb6f71b into main Dec 1, 2026
1 check passed
@tensorcircuit-bot
tensorcircuit-bot deleted the migrate-peps-tvmc-chern branch December 1, 2026 15:51
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: Real-Time Dynamics in Two Dimensions with Tensor Network States via tVMC (migrate tensorcircuit-ng#134)

1 participant