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.1.tar.gz (10.0 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.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file surfq-0.1.1.tar.gz.

File metadata

  • Download URL: surfq-0.1.1.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for surfq-0.1.1.tar.gz
Algorithm Hash digest
SHA256 381dc35383e84bccc00840125f0cd7851f4fddd10430987cce11753ffccd1d28
MD5 f8c1d7ac95b0520f71aefc3631b26500
BLAKE2b-256 dc6d8e60618b89462f514840a06abc2a553468dc2436d07c691dd71fdbc3aa79

See more details on using hashes here.

File details

Details for the file surfq-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: surfq-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for surfq-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fac431c1596b5c32126f10ea2334349f12482d067b5a16a2f0477234848f5755
MD5 f4225a7af43d3db028aab848b45605c2
BLAKE2b-256 6f5854727bf4992861fc3b1648b5495f800c36db5a39af56e922df79119a1fa7

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