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)
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)
The package is available on pypi and installable via pip
:
pip install stabilizer-states
If you'd like to work with a development copy, then clone this repository and install via
poetry
:
poetry install -vvv --with dev