A surface code simulator
Project description
SurfQ
SurfQ is a Python framework for efficiently simulating surface codes under noise. The aim is to enable detailed investigation of the behavior of surface codes under different physical error models, supporting advanced fault-tolerant protocols such as lattice surgery, state injection, and magic state distillation as future extensions.
Features:
- Intuitive surface code representation
- Apply quantum operations: X, Z, H, CNOT, and syndrome measurement
- Simulate various noise channels: Pauli noise, depolarizing, bit-flip, phase-flip errors
- Analyse logical error rates and syndrome measurement statistics for error correction
- Modular and extensible framework for surface code simulation and fault-tolerant quantum protocols
Examples
uv run examples/main.py
Notebooks
uvx juv run notebooks/main.py
References
- Improved Simulation of Stabilizer Circuits – Aaronson and Gottesman, 2008
- Stim: a fast stabilizer circuit simulator – Gidney, 2021
- STABSim: A Parallelized Clifford Simulator with Features Beyond Direct Simulation – Garner et al., 2025
- The Heisenberg Representation of Quantum Computers - Gottesman, 2024
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file surfq-0.1.3.tar.gz.
File metadata
- Download URL: surfq-0.1.3.tar.gz
- Upload date:
- Size: 96.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7c8e614630961ee44dfe6117029e9822401dad7350739d246a2966e63a7079d
|
|
| MD5 |
9dd996b7ef3328dc7e89aaaee2baf56d
|
|
| BLAKE2b-256 |
0c718165eb2bb90a74be2194aa06546f702bede4dc757a7f900856e1df0a84c0
|
File details
Details for the file surfq-0.1.3-py3-none-any.whl.
File metadata
- Download URL: surfq-0.1.3-py3-none-any.whl
- Upload date:
- Size: 95.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
802cf403590b0667c25b51752dadd6d124fa6cf8a394cedefffe546d4f92a98e
|
|
| MD5 |
562dd6bae7d9bf0d446257e8df623101
|
|
| BLAKE2b-256 |
01a34d05ee379249c61f35fcd5ed70fb327c2bdaadbda45395c71be65499deae
|