Skip to main content

Automatically find detectors in a topologically quantum error corrected computation

Reason this release was yanked:

Test release, not expected to be used.

Project description

tqecd

The tqecd package is a spin-off from the tqec package that allows the automatic search of detectors in structured quantum error correction circuits.

This package was initially part of tqec, and has been outsourced to make it accessible to anyone wanting to use it outside of the tqec library.

Documentation

Documentation is available at https://tqec.github.io/tqecd/index.html.

Installation

Currently, tqecd needs to be installed from source using

python -m pip install git+https://github.com/tqec/tqecd.git

The tqecd package have some dependencies that might be harder than a simple pip install to install. If you end up having any issue with the simple installation method above, please have a look at the full installation page.

Basic usage

import stim

from tqecd import annotate_detectors_automatically

# Example circuit that contains a detector
XXXX = stim.Circuit("""\
QUBIT_COORDS(1, 1) 0
QUBIT_COORDS(0, 0) 1
QUBIT_COORDS(2, 0) 2
QUBIT_COORDS(0, 2) 3
QUBIT_COORDS(2, 2) 4
RX 0 1 2 3 4
TICK
CX 0 1
TICK
CX 0 2
TICK
CX 0 3
TICK
CX 0 4
TICK
MX 0
""")
assert XXXX.num_detectors == 0

annotated_circuit = annotate_detectors_automatically(XXXX)
print(annotated_circuit)

should output the following quantum circuit:

QUBIT_COORDS(1, 1) 0
QUBIT_COORDS(0, 0) 1
QUBIT_COORDS(2, 0) 2
QUBIT_COORDS(0, 2) 3
QUBIT_COORDS(2, 2) 4
RX 0 1 2 3 4
TICK
CX 0 1
TICK
CX 0 2
TICK
CX 0 3
TICK
CX 0 4
TICK
MX 0
DETECTOR(1, 1, 0) rec[-1]

Contributing

Pull requests and issues are more than welcomed!

See the contributing page for for specific instructions to start contributing.

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

tqecd-0.0.1.tar.gz (46.8 kB view details)

Uploaded Source

Built Distribution

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

tqecd-0.0.1-py3-none-any.whl (50.5 kB view details)

Uploaded Python 3

File details

Details for the file tqecd-0.0.1.tar.gz.

File metadata

  • Download URL: tqecd-0.0.1.tar.gz
  • Upload date:
  • Size: 46.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for tqecd-0.0.1.tar.gz
Algorithm Hash digest
SHA256 260abea343585177621a754b2dc300a12d03469fd0c46c74c4d81852e1ef8245
MD5 ccb566cfe626f83ff7212b0e825051bf
BLAKE2b-256 acbce71ca321f33a22c114d90c5d3656dfbfa53ac58d0e14e7cab1fb823b2bee

See more details on using hashes here.

Provenance

The following attestation bundles were made for tqecd-0.0.1.tar.gz:

Publisher: publish.yml on tqec/tqecd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tqecd-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: tqecd-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 50.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for tqecd-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ad0ae8e503e5f1a27070e844a09cdfd73d5ca43ca9e13113fdcb42673dbc75c
MD5 9ce9b53781a1cbe732ede0dfcf335d92
BLAKE2b-256 47c1438b4b122a6d68d9b6ffe114389d2e37437596abce1ff10f60a1ad54e67c

See more details on using hashes here.

Provenance

The following attestation bundles were made for tqecd-0.0.1-py3-none-any.whl:

Publisher: publish.yml on tqec/tqecd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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