Classical Simulation Healed by Quantum Entanglement.
Jue Xu, Chu Zhao, Xiangran Zhang, Shuchen Zhu, and Qi Zhao, 2025.
This repository implements the Low-weight Pauli Dynamics (LPD) algorithm for classically simulating quantum Hamiltonian evolution. LPD approximates local expectation values
Key insight: Entanglement in the input state suppresses truncation error, making classical simulation easier — not harder — for entangled states.
Given a
-
Trotterize the time evolution
$e^{-iHt}$ into a sequence of Pauli rotations. -
Propagate the observable
$O$ backward through the circuit in the Heisenberg picture. Each Pauli rotation either leaves a Pauli string unchanged (commuting) or branches it into two terms with a$\sin(\delta t)$ damping factor (anticommuting). -
Truncate all Pauli strings with weight above a threshold
$w^*$ . -
Evaluate
$\mathrm{Tr}(\rho \cdot O_{\mathrm{truncated}})$ .
-
Entanglement helps: The Pauli 2-norm (which bounds truncation error) is suppressed by the subsystem entanglement entropy of
$\rho$ . -
Polynomial runtime: For short-time dynamics at constant precision, LPD runs in
$O(n^{w^*+c})$ time, polynomial in system size. -
Hybrid MPS + LPD: For product initial states, forward-evolve
$\rho$ with MPS (Schrödinger picture) to build entanglement, then backward-evolve$O$ with LPD (Heisenberg picture) — extending the reachable simulation time beyond either method alone.
- LPD — Low-weight Pauli with the second-order product formula
- Hybrid LPD + MPS — Combined Heisenberg + Schrödinger picture simulation
spd/ # Sparse Pauli Dynamics package
├── SparsePauliDynamics.py # Full SPD simulation (threshold-based filtering)
├── LightPauliDynamics.py # LPD with weight-based truncation
├── PauliRepresentation.py # Bit-packed Pauli string data structure
├── OperatorSequence.py # Pauli rotation gate sequences
├── utils.py # Numba-accelerated bit operations
└── extras/
└── HeavyHexUtils.py # IBM Heavy Hex topology utilities
pauli.py # Pauli rotation, weight decomposition, expectation values
Hamiltonians.py # Local Hamiltonian construction (XYZ interactions, QMFI)
input_states.py # Clifford 2/3-design state generation
quantity.py # Entanglement entropy, operator magic, fidelity
trotter_bounds.py # Analytical and empirical Trotter error bounds
mps.py # MPS utilities
julia/ # Julia implementation for performance comparison
- Aharonov, Gao, Landau, Liu, and Vazirani. A Polynomial-Time Classical Algorithm for Noisy Random Circuit Sampling. In Proceedings of STOC 2023, 945–957 (2023).
- Begušić and Chan. Fast and converged classical simulations of evidence for the utility of quantum computing before fault tolerance. Science Advances 10, eadk4321 (2024).
- Shao, Wei, Cheng, and Liu. Simulating noisy variational quantum algorithms: A polynomial approach. Physical Review Letters 133, 120603 (2024).
- Begušić and Chan. Real-Time Operator Evolution in Two and Three Dimensions via Sparse Pauli Dynamics. PRX Quantum 6, 020302 (2025).
- Rudolph, Jones, Teng, Angrisani, and Holmes. Pauli Propagation: A Computational Framework for Simulating Quantum Systems. arXiv:2505.21606 (2025).
- Schuster, Yin, Gao, and Yao. A Polynomial-Time Classical Algorithm for Noisy Quantum Circuits. Physical Review X 15, 041018 (2025).
# Create python environment
conda create --name myenv python=3.10
# Install requirements
pip install quantum_simulation_recipe