Expressing and Analyzing Quantum Algorithms with Qualtran
Matthew P. Harrigan, Tanuj Khattar, Charles Yuan, Anurudh Peduri, Noureldin Yosri, Fionn D. Malone, Ryan Babbush, Nicholas C. Rubin
TL;DR
Qualtran addresses the need for precise, reproducible tooling to analyze quantum algorithms intended for error‑corrected hardware. It introduces bloqs, a hierarchical, data‑driven representation of quantum programs, along with call graphs, gate/qubit counting, and tensor/classical simulation, to enable architecture‑agnostic cost analysis and automation of resource estimates. The framework ships with a substantive standard library of primitives (rotations, state preparation, block encodings, QSP/QSVT, QPE, etc.) and supports architecture‑aware physical cost models, demonstrated through Hamiltonian simulation, quantum chemistry, and cryptography case studies. By enabling explicit constructions, symbolic cost propagation, and open collaboration, Qualtran aims to accelerate reproducible, scalable quantum algorithm development and guide hardware‑roadmap decisions.
Abstract
Quantum computing's transition from theory to reality has spurred the need for novel software tools to manage the increasing complexity, sophistication, toil, and fallibility of quantum algorithm development. We present Qualtran, an open-source library for representing and analyzing quantum algorithms. Using appropriate abstractions and data structures, we can simulate and test algorithms, automatically generate information-rich diagrams, and tabulate resource requirements. Qualtran offers a standard library of algorithmic building blocks that are essential for modern cost-minimizing compilations. Its capabilities are showcased through the re-analysis of key algorithms in Hamiltonian simulation, chemistry, and cryptography. Architecture-independent resource counts output by Qualtran can be forwarded to our implementation of cost models to estimate physical costs like wall-clock time and number of physical qubits assuming a surface-code architecture. Qualtran provides a foundation for explicit constructions and reproducible analysis, fostering greater collaboration within the growing quantum algorithm development community.
