The ZX-calculus gives us a handy way to represent and work with quantum computations. ZXLive is an interactive tool for working with ZX. Draw graphs or load circuits and apply ZX rules. Intended for experimenting, building proofs, helping to write papers, showing off, or simply learning about ZX and quantum computing. It is powered by the pyzx open source library under the hood. The documentation is available at https://zxlive.readthedocs.io/
This project is in a pretty early stage, with lots more to come. Have a look at the Issue Tracker to see what's in the pipeline.
Instructions
To install from source, you need Python >= 3.9 and pip. If you have those, just run:
git clone https://github.com/zxcalc/zxlive.git
cd zxlive
pip install .
Then, you can run ZXLive by typing zxlive.
Note that ZXLive requires the most recent development version of PyZX. If you already have a version of PyZX installed, first uninstall it with pip uninstall pyzx, and then run pip install . in the ZXLive folder (or manually install the latest PyZX version using pip install @git+https://github.com/zxcalc/pyzx.git).
Testing
To ensure the quality and correctness of this project, several testing and linting tools are utilized. Below are the steps to run the tests and checks:
1. Static Type Checks with mypy
You can run mypy to perform static type checking:
mypy zxlive
2. Unit Tests with pytest
Execute the test suite using pytest to ensure all tests pass:
pytest
Documentation
This project uses Sphinx to build a ReadTheDocs page. In addition, it uses the MyST preprocessor to allow us to write documentation in a Markdown-like format rather than Sphinx's native rich structured text format.
The documentation can be built with
cd doc
make html
Overview of the files
Metadata
Release files for zxlive 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zxlive-1.0.0.tar.gz | 2.5 MB | Without provenance | Details for zxlive-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zxlive-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for zxlive-1.0.0-py3-none-any.whl |
Total release size: 4.9 MB
Release files / zxlive-1.0.0.tar.gz
| Download URL | zxlive-1.0.0.tar.gz |
|---|---|
| Size | 2.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c72d8315edbb184911f6635af21a0adfd9d65901f7d2d6f0f5c213de798211f4
|
|
BLAKE2b-256 checksum How to use checksums |
c527dd24f77d6ebd4dd7ef2f45d9e87ab9a8d4ad3acea281d3a337aed144b1b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.8
|
Release files / zxlive-1.0.0-py3-none-any.whl
| Download URL | zxlive-1.0.0-py3-none-any.whl |
|---|---|
| Size | 2.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be76cc39ba79d2a41e520689e65db30abf7494283e8275c453db3a19d21ec013
|
|
BLAKE2b-256 checksum How to use checksums |
30eabf3ef54e92d2ab42544798c8e9ddd137bb2fbceaa37df033984cafae3a18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.8
|
Security for zxlive 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.