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 hashes)

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 hashes)

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 hashes)

Uploaded CPython 3.12 macOS 13.0+ ARM64

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

Uploaded CPython 3.12 macOS 12.0+ x86-64

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

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 hashes)

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 hashes)

Uploaded CPython 3.11 macOS 13.0+ ARM64

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

Uploaded CPython 3.11 macOS 12.0+ x86-64

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

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 hashes)

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 hashes)

Uploaded CPython 3.10 macOS 13.0+ ARM64

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

Uploaded CPython 3.10 macOS 12.0+ x86-64

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