Stabilizer Toolkit
This Python package is a toolkit that can help with the analysis of multi-qubit magic states (e.g. their rank and related decompositions). The code originated to support the research for my Master's Thesis at UT Austin: CCZ Magic.
Usage
from stabilizer_states import StabilizerStates
from stabilizer_toolkit.decompositions import rank2, validate_decompositions
from stabilizer_toolkit.magic_states import enumerate_ccz
S3 = StabilizerStates(3)
_, CCZ, _, _ = next(enumerate_ccz(3))
decompositions, coeffs = rank2.search_all_stabilizer_states(CCZ, S3)
validate_decompositions(CCZ, decompositions, coeffs)
For more usage take a look at the example notebooks.
Installation
The package is available on pypi and installable via pip:
pip install stabilizer-toolkit
You may also want to install the optional stabilizer-states package,
which provides the stabilizer datasets for n <= 6, then you can install with the states extras:
pip install stabilizer-toolkit[states]
There are also additional helpers that require the use of additional libraries, so you may also want to install those:
pip install stabilizer-toolkit[states,helpers]
Development
If you'd like to work with a development copy, then clone this repository and install via
poetry:
poetry install -vvv --with dev --all-extras
Metadata
Release files for stabilizer-toolkit 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 | |
|---|---|---|---|
| stabilizer_toolkit-0.1.0.tar.gz | 11.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stabilizer_toolkit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.8 kB
Release files / stabilizer_toolkit-0.1.0.tar.gz
| Download URL | stabilizer_toolkit-0.1.0.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a80260a84fd0e6481456254c7f7ac7cf59bbc558be3e28c878027a50b09e9b7
|
|
BLAKE2b-256 checksum How to use checksums |
c966f5fe137d4f88999d68314209d82b994c31394bc6cc075c5e19a128352ca9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.1 CPython/3.9.16 Darwin/19.6.0
|
Release files / stabilizer_toolkit-0.1.0-py3-none-any.whl
| Download URL | stabilizer_toolkit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1965fcc7ae2652e85019d76edd1434faab87744d067b28bc6f17691ee2cc1524
|
|
BLAKE2b-256 checksum How to use checksums |
f0370183a07ae05b9922000727678b1759aab5e546668dcb8b3914fbf8aeca5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.1 CPython/3.9.16 Darwin/19.6.0
|