Skip to main content

Automatically find detectors in a topologically quantum error corrected computation

Reason this release was yanked:

Only for testing purposes

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.1.0.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.1.0-py3-none-any.whl (50.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tqecd-0.1.0.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.1.0.tar.gz
Algorithm Hash digest
SHA256 09f2eea8c2d6b3bbbdc9139b916c7bf1534fabce961c1cf375cdabf9f7d8d751
MD5 ad2bf3962de80a912db9c29a8ca93f73
BLAKE2b-256 d7d020407bf43669d36a31edd38bbbc5942736b20862f86318463ccc78408c05

See more details on using hashes here.

Provenance

The following attestation bundles were made for tqecd-0.1.0.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: tqecd-0.1.0-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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e23e03817cfc01ab21269b5ddb16f0219315443bfc79afaf9da6f5167da7f6e
MD5 22bd610c2fd539ba03cbcb27d1199fe3
BLAKE2b-256 43f64eff898f83d714798b5366bb23407643bacda47634dd72401f858aad2a8c

See more details on using hashes here.

Provenance

The following attestation bundles were made for tqecd-0.1.0-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