Tranzor
WARNING: This project is a preliminary mock-up and has not been extensively tested, so it may encounter bugs.
Tranzor is a generator for transversal Clifford logical circuits using the color code.
Given a logical-level circuit represented in stim, tranzor compiles each qubit in the circuit
into a logical qubit encoded with the superdense color code, and each gate into a transversal gate
supported by the color code. A syndrome extraction round is explicitly represented using the I instruction
in the circuit.
Installation
pip install tranzor
Examples
S Gate
import stim
from tranzor import SuperDenseColorCode, compile_circuit
logical_circuit = stim.Circuit("""
QUBIT_COORDS(0, 0) 0
RX 0
TICK
I 0
TICK
S_DAG 0
TICK
I 0
TICK
S 0
TICK
I 0
TICK
MX 0
OBSERVABLE_INCLUDE(0) rec[-1]
""")
color_code = SuperDenseColorCode(d=3)
out = compile_circuit(logical_circuit, color_code)
compiles to the following Crumble circuit.
H and CNOT Gate
import stim
from tranzor import SuperDenseColorCode, compile_circuit
logical_circuit = stim.Circuit("""
QUBIT_COORDS(0, 0) 0
QUBIT_COORDS(1, 0) 1
RZ 0 1
TICK
H 0
TICK
I 0 1
TICK
CX 0 1
TICK
I 0 1
TICK
MZ 0 1
OBSERVABLE_INCLUDE(0) rec[-1] rec[-2]
""")
color_code = SuperDenseColorCode(d=3)
out = compile_circuit(logical_circuit, color_code)
compiles to the following Crumble circuit.
Metadata
Release files for tranzor 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tranzor-0.1.0.tar.gz | 75.3 kB | Without provenance | Details for tranzor-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tranzor-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for tranzor-0.1.0-py3-none-any.whl |
Total release size: 93.9 kB
Release files / tranzor-0.1.0.tar.gz
| Download URL | tranzor-0.1.0.tar.gz |
|---|---|
| Size | 75.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16af17e15669a259e5a350558c7a42799a9b9113e4cc3a0537db7f7194543d9a
|
|
BLAKE2b-256 checksum How to use checksums |
fb473124cee02c91c89163bf78428b0a3b1ed4dc08d64c88807103e0b7a9b0e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.6
|
Release files / tranzor-0.1.0-py3-none-any.whl
| Download URL | tranzor-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
068dcbdddc068b555f001c6a6a5b310da1e2c65d7f137ff3d5096ea1f4979852
|
|
BLAKE2b-256 checksum How to use checksums |
018ed3d90ed0275e734acbc5e089066897f47aa5833fdd5bb982e724441bf064
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.6
|
Security for tranzor 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.