ffsim: faster simulation of fermionic quantum circuits
Kevin J. Sung, Inho Choi, Mirko Amico, Bartholomew Andrews, Esra Ayantuna, Yukio Kawashima, Wan-Hsuan Lin, David Omanovic, Samuele Piccinelli, Javier Robledo Moreno, Abdullah Ash Saki, James Shee, Soyoung Shin, Minh C. Tran, Kento Ueda, Haimeng Zhang, Mario Motta · 2026
Read ffsim: faster simulation of fermionic quantum circuits by Kevin J. Sung, Inho Choi, Mirko Amico, Bartholomew Andrews, Esra Ayantuna, Yukio Kawashima, Wan-Hsuan Lin, David Omanovic, Samuele Piccinelli, Javier Robledo Moreno, Abdullah Ash Saki, James Shee, Soyoung Shin, Minh C. Tran, Kento Ueda, Haimeng Zhang, Mario Motta (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-03123.txt.
Introduction
Kevin J. Sung and sixteen co-authors introduce ffsim, an open-source library for fast simulation of fermionic quantum circuits. Fermion systems keep particle number and spin projection fixed, and general simulators waste effort by ignoring those symmetries.
By building those conservations in, ffsim cuts memory use and run time and beats a similar library on benchmark tests. Beyond basic gates, it offers variational forms, time evolution tools, Slater determinant sampling, and links to Qiskit and PySCF, with full documentation. Demo runs cover circuits up to sixty-four qubits, showing the library's reach for chemistry and physics work.
Catalog record
| CREATOR | Kevin J. Sung, Inho Choi, Mirko Amico, Bartholomew Andrews, Esra Ayantuna, Yukio Kawashima, Wan-Hsuan Lin, David Omanovic, Samuele Piccinelli, Javier Robledo Moreno, Abdullah Ash Saki, James Shee, Soyoung Shin, Minh C. Tran, Kento Ueda, Haimeng Zhang, Mario Motta |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 52 KB |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2605.03123
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
ffsim: faster simulation of fermionic quantum circuits Kevin J. Sung, Inho Choi, Mirko Amico, Bartholomew Andrews, Esra Ayantuna, Yukio Kawashima, Wan-Hsuan Lin, David Omanovic, Samuele Piccinelli, Javier Robledo Moreno, Abdullah Ash Saki, James Shee, Soyoung Shin, Minh C. Tran, Kento Ueda, Haimeng Zhang, Mario Motta Abstract We present ffsim , an open-source software library for fast simulation of fermionic quantum circuits. ffsim exploits conservation of particle number and the z z component of spin, symmetries present in a wide range of fermionic systems, to dramatically reduce memory usage and simulation time compared to general-purpose quantum circuit simulators. Compared to FQE , a library with similar functionality, ffsim differs in software design and is faster on a representative set of simulation benchmarks. Beyond state vector evolution by basic fermionic gates, ffsim offers a number of additional features including variational ansatzes, Hamiltonian time evolution via Trotter-Suzuki product formulas, efficient sampling of Slater determinants, seamless integration with Qiskit and PySCF , and comprehensive documentation. We demonstrate ffsim ’s capabilities on scientific applications involving quantum circuits of up to 64 qubits. You can find ffsim ’s source code, installation instructions, and link to documentation at https://github.com/qiskit-community/ffsim . 1 Introduction With the continuing development of quantum computing hardware and algorithms, the ability to test, validate, and characterize these algorithms through classical simulation becomes increasingly important. Classical simulation serves a dual role: it enables researchers to prototype algorithms and explore their behavior on tractable problem sizes, and it provides numerical benchmarks against which quantum hardware results can be compared. While many general-purpose quantum circuit simulators have been developed, specialized simulators that exploit problem structure can offer vastly greater performance within their domain. The simulation of fermionic systems, a highly anticipated application of quantum computers, is one such domain. This paper describes ffsim , a Python library for simulating fermionic quantum circuits that exploits conservation of particle number and the z component of spin. These symmetries are present in many fermionic systems, from molecules and materials to idealized lattice models. The idea to exploit these symmetries for state vector simulation is not new, and has previously been implemented in the Fermionic Quantum Emulator ( FQE ) [ 1 ] . While ffsim and FQE share a common purpose, they differ in software design, features, and performance. Notably, ffsim offers substantial speedups across a range of representative benchmarks, and integrates with Qiskit [ 2 ] and PySCF [ 3 , 4 , 5 ] , widely used open-source software libraries for quantum computing and quantum chemistry. Through its integration with Qiskit , ffsim can simulate arbitrary qubit circuits composed of Hamming weight-preserving gates, without reference to fermions. ffsim also offers a number of additional features, including variational ansatzes, Hamiltonian time evolution, efficient sampling of Slater determinants, and comprehensive documentation. As an exact state vector simulator, ffsim ’s resource usage scales exponentially with system size, but with a smaller prefactor compared to a general-purpose quantum circuit simulator. The smaller prefactor meaningfully extends the range of tractable systems, as we demonstrate by applying ffsim to scientific applications that involve simulating quantum circuits of up to 64 qubits. While a general-purpose quantum circuit simulator would require 256 EiB (about 2.7\times 10^{11} GiB) to store the state vector of 64 qubits using double precision, ffsim uses only 19.3 GiB for the demonstrated system, a Hubbard model at 1/8 filling. The rest of this paper is organized as follows. Section 2 introduces the mathematical background and notation used throughout the paper. Section 3 describes ffsim ’s state vector representation and the algorithms used to apply fermionic gates. Section 4 describes the software design and features of ffsim . Section 5 compares ffsim with other software libraries and presents performance benchmarks. Section 6 demonstrates scientific applications enabled by ffsim . Finally, Section 7 discusses future directions and concludes the paper. 2 Background and notation 2.1 Fermionic creation and annihilation operators A fermionic system consists of a set of fermionic modes, each of which can be either empty or occupied by a fermion. A system of N modes is described by annihilation operators \{a_{p}\}_{p=0}^{N-1} satisfying the canonical anticommutation relations \displaystyle a_{p}a_{q}+a_{q}a_{p}=0,\qquad a_{p}a_{q}^{\dagger}+a_{q}^{\dagger}a_{p}=\delta_{pq}. (1) The adjoint a_{p}^{\dagger} is called a creation operator. The number operator n_{p}=a_{p}^{\dagger}a_{p} has eigenvalues 0 and 1, and all number operators share a mutual eigenvector of eigenvalue 0 denoted by \lvert\text{vac}\rangle . 2.2 Electronic configurations The Hilbert space of N fermionic modes is spanned by orthonormal basis vectors \displaystyle\lvert I\rangle=\cre(I)\lvert\text{vac}\rangle, (2) where I\subseteq\{0,\ldots,N-1\} and \cre(I) is an ordered product of creation operators on modes contained in I , with the modes sorted in ascending order from right to left. For example, \lvert\{0,2,3\}\rangle=a^{\dagger}_{3}a^{\dagger}_{2}a^{\dagger}_{0}\lvert\text{vac}\rangle and \lvert\{\}\rangle=\lvert\text{vac}\rangle . The basis vectors \lvert I\rangle are called electronic configurations, or simply configurations. We also use the same term to refer to the subsets I themselves. Note that in this work, electronic configurations are Slater determinants, and not configuration state functions [ 6 ] . In the context of quantum chemistry, the physical significance of the fermionic modes is often determined by a Hartree-Fock calculation [ 6 ] . In this case, the configuration \lvert\{0,\ldots,\eta-1\}\rangle , where \eta is the number of electrons in the system, is the Hartree-Fock state, denoted \lvert\text{Hartree-Fock}\rangle . 2.3 Orbital rotations An orbital rotation is a unitary operator \mathcal{U} such that \displaystyle\mathcal{U}a^{\dagger}_{p}\mathcal{U}^{\dagger}=\sum_{q}U_{qp}a^{\dagger}_{q} (3) for some N\times N unitary matrix U . In an abuse of notation, we write \mathcal{U}(U) for the operator corresponding to U . It is a theorem (see Section 3.2 of Ref. [ 6 ] for a proof) that \displaystyle\mathcal{U}(U)=\exp\left(\sum_{pq}\log(U)_{pq}a^{\dagger}_{p}a_{q}\right). (4) The map U\mapsto\mathcal{U}(U) is a group homomorphism, that is, \displaystyle\mathcal{U}(UV)=\mathcal{U}(U)\mathcal{U}(V)\qquad\text{and}\qquad\mathcal{U}(U^{\dagger})=\mathcal{U}(U)^{\dagger} (5) for any pair of unitary matrices U and V . 2.4 Slater determinants A Slater determinant is a state of the form \displaystyle\lvert\text{Slater}\rangle=\mathcal{U}\lvert I\rangle (6) where \mathcal{U} is an orbital rotation and \lvert I\rangle is an electronic configuration. Thus, electronic configurations are Slater determinants where the orbital rotation is the identity operator. 2.5 Spin In the systems we consider, the fermionic modes come in pairs called spatial orbitals. Each spatial orbital p\in\{0,\ldots,N-1\} contains two fermionic modes called spin orbitals, labeled by spin \sigma\in\{\alpha,\beta\} (spin-up and spin-down). We write a_{p\sigma} and n_{p\sigma}=a_{p\sigma}^{\dagger}a_{p\sigma} for the corresponding annihilation and number operators. In systems with spin, we use N to denote the number of spatial orbitals, so the total number of spin orbitals is 2N . The electronic configurations take the form \lvert I_{\alpha},I_{\beta}\rangle=\cre_{\beta}(I_{\beta})\cre_{\alpha}(I_{\alpha})\lvert\text{vac}\rangle , where I_{\alpha} is a subset of \{0,\ldots,N-1\} with N_{\alpha} elements, I_{\beta} is a subset of \{0,\ldots,N-1\} with N_{\beta} elements, and \cre_{\sigma}(I) is an ordered product of creation operators with spin \sigma . 2.6 Symmetry Two physically relevant symmetries are the total particle number \mathcal{N}=\sum_{p\sigma}n_{p\sigma} and projected spin \mathcal{S}_{z}=\frac{1}{2}\sum_{p}(n_{p\alpha}-n_{p\beta}) . When both are conserved, the Hilbert space decomposes into sectors labeled by (N_{\alpha},N_{\beta}) , where N_{\sigma} is the number of spin- \sigma electrons. Each sector has dimension \binom{N}{N_{\alpha}}\times\binom{N}{N_{\beta}} , and ffsim restricts simulation to a single such sector. 2.7 Hamiltonian representations ffsim works with the various Hamiltonian representations described in this section. 2.7.1 Molecular Hamiltonians A molecular Hamiltonian has the form \displaystyle H=\sum_{\begin{subarray}{c}pq\\ \sigma\end{subarray}}h_{pq}a^{\dagger}_{p\sigma}a_{q\sigma}+\frac{1}{2}\sum_{\begin{subarray}{c}pqrs\\ \sigma\tau\end{subarray}}h_{pqrs}a^{\dagger}_{p\sigma}a^{\dagger}_{r\tau}a_{s\tau}a_{q\sigma}, (7) where h_{pq} and h_{pqrs} are complex-valued tensors. 2.7.2 Double factorized Hamiltonians A double factorized Hamiltonian [ 7 ] has the form \displaystyle