Skip to main content

A toolkit for working with the stabilizer formalism: stabilizer states, rank, decompositions, etc.

Project description

Stabilizer Toolkit

pypi

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

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

stabilizer_toolkit-0.1.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

stabilizer_toolkit-0.1.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stabilizer_toolkit-0.1.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.9.16 Darwin/19.6.0

File hashes

Hashes for stabilizer_toolkit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7a80260a84fd0e6481456254c7f7ac7cf59bbc558be3e28c878027a50b09e9b7
MD5 c5afcf3af9b8b2eb85b13afd2667eb18
BLAKE2b-256 c966f5fe137d4f88999d68314209d82b994c31394bc6cc075c5e19a128352ca9

See more details on using hashes here.

File details

Details for the file stabilizer_toolkit-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for stabilizer_toolkit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1965fcc7ae2652e85019d76edd1434faab87744d067b28bc6f17691ee2cc1524
MD5 886ba243261b9b398ea3d9ad4bcebd69
BLAKE2b-256 f0370183a07ae05b9922000727678b1759aab5e546668dcb8b3914fbf8aeca5d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page