Enhancing Chemistry on Quantum Computers with Fermionic Linear Optical Simulation
Zack Hassman, Oliver Reardon-Smith, Gokul Subramanian Ravi, Frederic T. Chong, Kevin J. Sung
TL;DR
This work introduces ExtraFerm, an open-source simulator tailored to particle-number-conserving matchgates and controlled-phase gates, enabling efficient computation of Born-rule probabilities with runtime scales that are exponential only in circuit extent or CP-gate count. It provides three algorithms (Raw Estimate, Estimate, Exact) and trajectory-based techniques that make exact or approximate probability calculations tractable for large chemistry circuits, while offering LuCJ-specific optimizations for practical performance. The authors demonstrate substantial latency and memory advantages over tensor-network and state-vector baselines, and integrate ExtraFerm with SQD to significantly improve molecular ground-state energy estimates with minimal overhead, including real hardware demonstrations on nitrogen using the Heron processor. These results enable new hybrid quantum-classical workflows for near-term quantum chemistry and point to practical paths for leveraging matchgate-based circuits in quantum simulations.
Abstract
We present and open source a quantum circuit simulator tailored to chemistry applications. More specifically, our simulator can compute the Born-rule probabilities of samples obtained from circuits containing passive fermionic linear optical elements and controlled-phase gates. We support both approximate and exact calculation of probabilities, and for approximate probability calculation, our simulator's runtime is exponential only in the magnitudes of the circuit's controlled-phase gate angles. This makes our simulator useful for simulating certain systems that are beyond the reach of conventional state vector methods. We demonstrate our simulator's utility by simulating the local cluster unitary Jastrow (LUCJ) ansatz and integrating it with sample-based quantum diagonalization (SQD) to improve the accuracy of molecular ground-state energy estimates. Applied to a 52-qubit $N_2$ system, we observe accuracy improvements of up to $46\%$ over the baseline SQD implementation with negligible computational overhead. More generally, we highlight a regime in which our simulator achieves substantially superior latency scaling and exponentially superior memory scaling over a tensor network simulator and a state vector simulator. As an efficient and flexible tool for simulating quantum chemistry circuits, our simulator enables new opportunities for enhancing near-term quantum algorithms in chemistry and related domains.
