Metadata-Version: 2.1
Name: pauli_tracker
Version: 0.1.0
Classifier: License :: OSI Approved :: MIT License
Classifier: License :: OSI Approved :: Apache Software License
License-File: LICENSE-APACHE
License-File: LICENSE-MIT
Summary: A library to track Pauli gates through a Clifford circuit.
Keywords: quantum,clifford,pauli,mbqc
Author: Jannis Ruh <ruh.j81@gmail.com>
Author-email: Jannis Ruh <ruh.j81@gmail.com>
License: MIT OR Apache-2.0
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Repository, https://github.com/taeruh/pauli_tracker

# Python wrapper around pauli_tracker

This Python package is a wrapper around the [pauli_tracker crate] exporting its basic
functionality.

If some essential functionality is missing, because we just forgot to implement it, please
open an issue or pull request (cf. [contributing]). If you need more functionality, it is
fairly easy to use Rust from Python with the help of [pyo3] and [maturin]. However,
because of [#1444], you may want to clone this repository and extend it.

## Documentation

[To the docs]

When using this package, please also look at the [crate's documentation] of the Rust
crate (additionally to the [Python package's documentation]) in parallel since it is much
more extensive about how the Pauli tracking works (although not everything there is
supported in this wrapper).

### Examples

Please look at this [Python example] and also at these [Rust examples].

## Installation

You can install the package from PyPI, e.g., with
```bash
pip install pauli-tracker
```
The package contains pre-built wheels for manylinux\_2\_28\_x86\_64 (works on most Linux
distribuitions), latest Windows and latest MacOS (latest with respect to when the package
was built) for Python 3.8 to 3.12. Additionally, there is an manylinux\_2\_28\_x86\_64
abi3 wheel for Python >= 3.8. You can also build the package from source, e.g., force it
during a pip install with `pip install --no-binary pauli-tracker pauli-tracker`, however,
note that this requires Python >= 3.8 and a Rust toolchain >= 1.65.

At the moment, you may also find a more up-to-date wheel in the artifacts of the latest
"pypackage" github actions workflow; this is unstable though.

### Manually Building

The package has to be build with [maturin]. The `make package` commands builds it through
a docker container such that it is compatible with manylinux\_2\_28\_x86\_64 for Python >=
3.8. With `make update_docs` the documentation can be build. The output of both make
commands is in the `dist` directory.

## Versioning

The Python package follows [SemVer], however, the underlying Rust crate is unstable.

[crate's documentation]: https://docs.rs/pauli_tracker/latest/pauli_tracker/
[contributing]: https://github.com/taeruh/pauli_tracker/blob/main/CONTRIBUTING.md
[manylinux]: https://github.com/pypa/manylinux
[maturin]: https://github.com/PyO3/maturin
[pauli_tracker crate]: https://github.com/taeruh/pauli_tracker/tree/main/pauli_tracker
[pyo3]: https://github.com/PyO3/pyo3
[Python example]: https://taeruh.github.io/pauli_tracker/#example-usage
[Python package's documentation]: https://taeruh.github.io/pauli_tracker/
[Rust examples]: https://docs.rs/pauli_tracker/latest/pauli_tracker/#examples
[SemVer]: https://semver.org/
[To the docs]: https://taeruh.github.io/pauli_tracker/
[#1444]: https://github.com/PyO3/pyo3/issues/1444

