Latency-Preserving Rewrites and Translation Validation for Dynamic Quantum Circuits
Abstract
A dynamic quantum circuit measures qubits during a run and chooses later operations from the outcomes. These branches make the qubits wait: the outcome must reach the classical controller, and the controller must decide. We present qlin, a compiler that reduces this waiting time. qlin moves operations out of branches without delaying the program, a property proved in Lean 4. For error-correction decoders, which branch on syndromes that are almost always zero, qlin compiles the likely syndromes into one multiway branch and keeps the original program for the rest. A cost model decides when a classically controlled gate should become a quantum-controlled gate instead. On all benchmarks, qlin checks that the compiled program computes what its source computes, and the checker is proved sound in Lean 4. At the published per-decision cost of the QICK controller (42 ns), 10 of 65 programs run at least 10% faster than the best baseline in our cost model, up to 91.2%, mostly because one multiway branch replaces a long chain of if statements. On the register-transfer logic of the QubiC controller, a compiled distance-5 repetition decoder selects its correction in 21.3 instead of 151.1 expected cycles. Timing runs on an IBM device were too noisy to confirm or reject the model's ranking.
Create a lesson
Metadata
- Categories
- quant-ph, cs.PL
Related papers
Penalty-Free Constrained Optimization on Dynamic Quantum Circuits via Phase-Protected Tunneling and Closed-Loop Spectral Ratchets
Shared title terminologyquant-phChia-Ho Ou
SCOPE: A Physical Execution Latency-Guided Quantum Circuit Compilation Framework
Shared title terminologyquant-phBolin Zhang, Zhiyuan Zhang, Yongguang Lv et al.
Undecidable quantum storage: no algorithm can tell from the noise rate whether a fixed circuit remembers
Shared title terminologyquant-phSeth Douglas, Nidhal Mghirbi
A Frequency-Learning Interpolation-Based Coordinate Descent Method to Optimize Parameterized Quantum Circuits on Quantum Hardware
Shared title terminologyquant-phJack Mandell, Adam Leicester, Zixu Wang et al.
Long-time dynamics of open quantum systems: mathematical and physical aspects
Shared title terminologyquant-phDaniele Amato, Paolo Facchi, Giovanni Gramegna et al.
World Models for Learning Quantum Many-Body Dynamics
Shared title terminologyquant-phYuan Wang, Oleksandr Kyriienko