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
Release history Release notifications | RSS feed
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09f2eea8c2d6b3bbbdc9139b916c7bf1534fabce961c1cf375cdabf9f7d8d751
|
|
| MD5 |
ad2bf3962de80a912db9c29a8ca93f73
|
|
| BLAKE2b-256 |
d7d020407bf43669d36a31edd38bbbc5942736b20862f86318463ccc78408c05
|
Provenance
The following attestation bundles were made for tqecd-0.1.0.tar.gz:
Publisher:
publish.yml on tqec/tqecd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tqecd-0.1.0.tar.gz -
Subject digest:
09f2eea8c2d6b3bbbdc9139b916c7bf1534fabce961c1cf375cdabf9f7d8d751 - Sigstore transparency entry: 154395477
- Sigstore integration time:
-
Permalink:
tqec/tqecd@30794a32b582cadecca281a2cfeb6dd3cf4622f4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tqec
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@30794a32b582cadecca281a2cfeb6dd3cf4622f4 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e23e03817cfc01ab21269b5ddb16f0219315443bfc79afaf9da6f5167da7f6e
|
|
| MD5 |
22bd610c2fd539ba03cbcb27d1199fe3
|
|
| BLAKE2b-256 |
43f64eff898f83d714798b5366bb23407643bacda47634dd72401f858aad2a8c
|
Provenance
The following attestation bundles were made for tqecd-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on tqec/tqecd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tqecd-0.1.0-py3-none-any.whl -
Subject digest:
1e23e03817cfc01ab21269b5ddb16f0219315443bfc79afaf9da6f5167da7f6e - Sigstore transparency entry: 154395478
- Sigstore integration time:
-
Permalink:
tqec/tqecd@30794a32b582cadecca281a2cfeb6dd3cf4622f4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tqec
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@30794a32b582cadecca281a2cfeb6dd3cf4622f4 -
Trigger Event:
push
-
Statement type: