Metadata-Version: 2.1
Name: pysimplex
Version: 1.5.0
Summary: A fast Clifford circuit simulator
Home-page: https://github.com/CQCL/simplex
Author: Alec Edgington
Author-email: alec.edgington@cambridgequantum.com
License: Apache 2
Classifier: Environment :: Console
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# pysimplex

This is a fast Clifford circuit simulator based on [BH21][1].

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

Example usage:

```python
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.

[1]: https://arxiv.org/abs/2109.08629
