semvec/pypi-packages huggingface dataset:
pysimplex 1.5.0
A fast Clifford circuit simulator
License: Apache 2
Requires Python: >=3.10

# 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