A supporting (optional) library for stabilizer-toolkit that provides stabilizer states.
Project description
Stabilizer States
A supporting, optional package to stabilizer-toolkit, which provides the following stabilizer state datasets:
- 1 qubit stabilizer states (all: 6)
- 2 qubit stabilizer states (all: 60)
- 3 qubit stabilizer states (all: 1080)
- 4 qubit stabilizer states (all: 36720)
- 5 qubit stabilizer states (all: 2423520, ternary: 146880)
- 6 qubit stabilizer states (ternary: 9694080)
Usage
from stabilizer_states import StabilizerStates
S1 = StabilizerStates(1)
print(S1.shape)
It's worth noting that if you are only using the real or ternary form of the states, then in some cases the dataset will load quicker (e.g. 5 and 6 qubit datasets):
from stabilizer_states import StabilizerStates
S5 = StabilizerStates(5, "ternary")
print(S5.shape)
Installation
The package is available on pypi and installable via pip
:
pip install stabilizer-states
Development
If you are wishing to work with a development copy, then clone this repository and install via poetry
:
poetry install -vvv --with dev
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
File details
Details for the file stabilizer_states-0.1.0.tar.gz
.
File metadata
- Download URL: stabilizer_states-0.1.0.tar.gz
- Upload date:
- Size: 64.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.9.16 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dda1a776f86d6b372e62a4f24a8bece2d41dd1811fa68daa4f3011b74faa688e |
|
MD5 | 95d23376a7527b86b0b06360cd772027 |
|
BLAKE2b-256 | a9ac4798524374b096dba3df870a82b49b651ac76b22634e63a3305561cd6448 |
File details
Details for the file stabilizer_states-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: stabilizer_states-0.1.0-py3-none-any.whl
- Upload date:
- Size: 83.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.9.16 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1924cad15ed90968ebcb9ca74121345583236f582e55b619d24fb6b49b1902c5 |
|
MD5 | acf5deea2977d1292da9fb9664dde0fb |
|
BLAKE2b-256 | 34959e50b592899bb6f43d28eef15a30e6c962b9fbcc0d032e0ddaadf8a89fc2 |