Skip to main content

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

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

surfq-0.1.3.tar.gz (96.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

surfq-0.1.3-py3-none-any.whl (95.2 kB view details)

Uploaded Python 3

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

Hashes for surfq-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d7c8e614630961ee44dfe6117029e9822401dad7350739d246a2966e63a7079d
MD5 9dd996b7ef3328dc7e89aaaee2baf56d
BLAKE2b-256 0c718165eb2bb90a74be2194aa06546f702bede4dc757a7f900856e1df0a84c0

See more details on using hashes here.

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

Hashes for surfq-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 802cf403590b0667c25b51752dadd6d124fa6cf8a394cedefffe546d4f92a98e
MD5 562dd6bae7d9bf0d446257e8df623101
BLAKE2b-256 01a34d05ee379249c61f35fcd5ed70fb327c2bdaadbda45395c71be65499deae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page