tqec: A Python package for topological quantum error correction
Abstract
tqec is a Python-based open-source compiler that takes a logical-level quantum computation model represented as connected 3D primitive blocks and translates it into a detailed, faulttolerant, physical-level circuit.The result is a Stim circuit (Gidney, 2021) with all the detailed information needed for simulation or to run on real quantum hardware.This enables both quantum algorithm designers and experimentalists to rapidly iterate and obtain exact low-level circuits, facilitating efficient performance simulation or experimental demonstration.At present, tqec is primarily centered on the surface code.
Fields of Study & Subjects
Quantum Computing Algorithms and Architecture
Quantum Information and Cryptography
Quantum Mechanics and Applications
Publication details
- Journal / source
- The Journal of Open Source Software
- Publisher
- The Open Journal
- Volume
- 11
- Issue
- 120
- Pages
- 9142–9142
- Publication date
- 1 April 2026