A fast Clifford circuit simulator
Project description
pysimplex
This is a fast Clifford circuit simulator based on BH21.
Known issues:
- Not yet optimized for sparsity.
- Measurements in the Y basis, while correct, are less efficient than they should be because the method described in the paper was not quite working.
Work is in progress on both these issues and the package will be updated in due course.
Wheels are currently available for Linux only, for Python versions 3.8, 3.9 and 3.10. I will be adding wheels for MacOS and Windows soon.
Example usage:
from pysimplex import Simplex
S = Simplex(2) # a 2-qubit system
S.H(0)
S.CX(0, 1)
b0 = S.MeasZ(0, coin=0) # 'coin' is an optional argument that fixes the result
assert b0 == 0 # without 'coin' it would be 0 or 1 with equal probability
b1 = S.MeasZ(1)
assert b0 == b1
assert not S.is_deterministic() # 'coin' is irrelevant here
The available operations are: X
, Y
, Z
, H
, S
, Sdg
, CX
, CZ
,
MeasX
, MeasY
and MeasZ
.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for pysimplex-0.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51113e11ba53372aff7a202f1854354ff0312fd9ea3cfe1d3f296b5247d1e571 |
|
MD5 | be94d2f9c355fa4334a3b2740c9d3ba3 |
|
BLAKE2b-256 | 4f53b368dc8dd46db8d67fb8e5d45fb25c732806ed66e89588d479ba44007c35 |
Close
Hashes for pysimplex-0.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3d7f1d19c449ef6cf94a96960d1b5b57e3382e7b394ea4de32ae2da840c885a |
|
MD5 | 6fd9189abaee42f3924adc7696ea790c |
|
BLAKE2b-256 | 4fbeefd00dab4dc806aba68b2ce611ca7c2e359940aafb19c9a7aa3658d3426e |
Close
Hashes for pysimplex-0.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d059c4ab48d5dd4172d8f7a0ed60ab855b780c29061db61aeff742faecce8789 |
|
MD5 | 612303e967eb1c853d5c3840998ea878 |
|
BLAKE2b-256 | 4c7b37f769fa8c131729cb7582ee3738e735b350cca52c246bccc5b452c705e7 |