Skip to main content

A fast Clifford circuit simulator

Project description

pysimplex

This is a fast Clifford circuit simulator based on BH21.

Wheels are currently available for Linux, MacOS and Windows, for Python versions 3.8, 3.9 and 3.10.

Example usage:

from pysimplex import Simplex
S = Simplex(2) # a 2-qubit system
S.H(0).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. The global phase (in units of pi/4, modulo 8) can be retrieved with the phase property.

Project details


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

pysimplex-1.5.0-cp312-cp312-win_amd64.whl (112.3 kB view details)

Uploaded CPython 3.12 Windows x86-64

pysimplex-1.5.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (148.8 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.27+ x86-64 manylinux: glibc 2.28+ x86-64

pysimplex-1.5.0-cp312-cp312-macosx_13_0_arm64.whl (100.7 kB view details)

Uploaded CPython 3.12 macOS 13.0+ ARM64

pysimplex-1.5.0-cp312-cp312-macosx_12_0_x86_64.whl (108.7 kB view details)

Uploaded CPython 3.12 macOS 12.0+ x86-64

pysimplex-1.5.0-cp311-cp311-win_amd64.whl (113.3 kB view details)

Uploaded CPython 3.11 Windows x86-64

pysimplex-1.5.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (150.5 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.27+ x86-64 manylinux: glibc 2.28+ x86-64

pysimplex-1.5.0-cp311-cp311-macosx_13_0_arm64.whl (101.4 kB view details)

Uploaded CPython 3.11 macOS 13.0+ ARM64

pysimplex-1.5.0-cp311-cp311-macosx_12_0_x86_64.whl (109.3 kB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

pysimplex-1.5.0-cp310-cp310-win_amd64.whl (111.9 kB view details)

Uploaded CPython 3.10 Windows x86-64

pysimplex-1.5.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (149.0 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.27+ x86-64 manylinux: glibc 2.28+ x86-64

pysimplex-1.5.0-cp310-cp310-macosx_13_0_arm64.whl (100.1 kB view details)

Uploaded CPython 3.10 macOS 13.0+ ARM64

pysimplex-1.5.0-cp310-cp310-macosx_12_0_x86_64.whl (107.9 kB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

File details

Details for the file pysimplex-1.5.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pysimplex-1.5.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 916de12e0f477030efa2e06fb77ba5fdb2e242ca54272377689995eb36ce44c9
MD5 8c81eed544d82902b277e5ad93787ba9
BLAKE2b-256 5ab6f5395abeba1df14e697fd7d18fb72015e0a8843335eb36ac11ecf335423c

See more details on using hashes here.

File details

Details for the file pysimplex-1.5.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pysimplex-1.5.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0782f364f9abb07238f00c294090effb855519ff639b58a16a7b23e5f4ec2213
MD5 ba684d1f5126cffcb37d1990cad4063b
BLAKE2b-256 2a4b87101b9e73b9f24083cb814f3ab803dedcf29845f41215953e4549584d86

See more details on using hashes here.

File details

Details for the file pysimplex-1.5.0-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pysimplex-1.5.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 825d5d9e07244c6d295385a5715f96806f3402f81741def85fd6cac05aaf542e
MD5 896f107e3db0e0155458d99d2e0b7b19
BLAKE2b-256 97090591d140c705e9d9f8137419b7aff3a15ee0ad9f1bf160f83cf904b1e713

See more details on using hashes here.

File details

Details for the file pysimplex-1.5.0-cp312-cp312-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pysimplex-1.5.0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 97226872046cd34d810b7524fcb79ccb99bece599a7aecb045483bef8e4873e4
MD5 f821d93b9e7195b7dab853f0fedcdb0e
BLAKE2b-256 3cae249df9f3bdb3a20dda41b02e048c26aadef7a77e5cc1bccbb246f907ef36

See more details on using hashes here.

File details

Details for the file pysimplex-1.5.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pysimplex-1.5.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e91af244fc35cb7612f2885da75379303818e9f36dbc2b9d67c25c4939b100d4
MD5 67210eacef4b47ad665c49c435c98d06
BLAKE2b-256 e47da5908b4b0cffbee2080a12c186f570bbf6d9add26d88ff8b17e0af3358f2

See more details on using hashes here.

File details

Details for the file pysimplex-1.5.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pysimplex-1.5.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9ed54e62dedb852cfff0e7d0eff2a49ef48dba50ebe8fba42057d9fef2b947eb
MD5 f40c8728f5df2ebf63f5310cf0cb84b2
BLAKE2b-256 df3387ff963807266ce4342e0ba8131faadc3b157b9e42f24e5027d6163dd896

See more details on using hashes here.

File details

Details for the file pysimplex-1.5.0-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pysimplex-1.5.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0c73d0192786d38a308f0c7bf6af74d35f382ca1233287d6d96c9b3e8eca41c2
MD5 811cb01d84cd69c059a18d6d6e14bc47
BLAKE2b-256 9eb8238479c1607c2a258a4e857801a71dcb0d35a13aa70c7a1f86b9b449f0ba

See more details on using hashes here.

File details

Details for the file pysimplex-1.5.0-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pysimplex-1.5.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 7bec72c6679f457ba803a9443b4feabd7f862825213212e9a86a2d7e28897cf9
MD5 c99860f99d53a0cc780ef6b648a2ba66
BLAKE2b-256 4ca07a1e57b3bf05696da1327cb306a38575d6619991f21f2e973c9aced63c96

See more details on using hashes here.

File details

Details for the file pysimplex-1.5.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pysimplex-1.5.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bafc7a7d4c40c7746b5fd3c9133a6777b6009a44ea1e09e0c74ef6b7d954c6cc
MD5 fb42b286154a78e4aa8ba2aee3a9b499
BLAKE2b-256 0dd35c7f864bc9d7bbe5cc8b4fe6e22ef3f260a6425bb6edf399593113f7c975

See more details on using hashes here.

File details

Details for the file pysimplex-1.5.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pysimplex-1.5.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d6e40bdac0e2e2f9876f5c277d844de11a2e88c60a24eb15c5db788b89eaea6d
MD5 c5ce004699d7b3919d56fa9a96e4600c
BLAKE2b-256 1a51d455dd5bdf7a436ea5c0a0c4fad368a275ada290e41e26fa79c26e079114

See more details on using hashes here.

File details

Details for the file pysimplex-1.5.0-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pysimplex-1.5.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 67c84985fca28cf6ba6708ec59c2a0159ff767de527e4753b4c05246d5b877b6
MD5 b6dc58d550d8606dea8e5f03da6943de
BLAKE2b-256 9a516cb7d580c97f673f6f39e2b0424eec7c069b541c2b3d82ef5d2eb8c1b2f7

See more details on using hashes here.

File details

Details for the file pysimplex-1.5.0-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for pysimplex-1.5.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 b70531060a4f7c0234fc3b99084b73956adffe64c7d9462cf89c3ceddbbc4228
MD5 94b10d5db93227e038f79db8d7b62825
BLAKE2b-256 399d21e0dcaafee1a90b47baf85d2ba23ea77c5500c13dd9f0f0deee18f7db14

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