pychorq
This package provides a tool for modeling quantum key distribution protocols, and other protocols that call for the transmission of qubits between actors, as choreographies.
Installation
Install from PyPI:
pip install pychorq
For local development:
pip install -e .[dev]
Core architecture
For its choreographic framework, pychorq extends pychor with a new local quantum backend. The backend supports classical messages in the same way the reference implementation supports sending messages between actors, but it also provides custom ownership logic when the messages are qubits or collections of qubits. In contrast to classical messages whose ownership list grows as they are passed around the network, ownership of quantum messages transitions from actor to actor, because qubits cannot be copied.
For modeling quantum systems, pychorq adds a qubit abstraction over the qutip quantum simulation library. Each qubit is its own object, and is backed by a quantum system. The backing quantum systems can combine as qubits become entangled, and can factor if qubits are measured. This approach eliminates the need for a single global quantum state, allows actors to add new qubits to a model dynamically, supports the messages-as-objects requirement of choreographic programming, and completely mediates access to quantum state matrixes through the Qubit objects.
See src/pychorq for the source code.
Examples
This package includes implementations of three sample quantum key distribution protocols: BB84, B92, and E91.
See /src/example for the source code of these examples. See /src/analysis for Jupyter notebooks that illustrate their use.
Metadata
Release files for pychorq 0.1.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 |
|---|---|---|---|---|
| pychorq-0.1.0.tar.gz | 192.9 kB | With provenance | Details for pychorq-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pychorq-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pychorq-0.1.0-py3-none-any.whl |
Total release size: 199.3 kB
Release files / pychorq-0.1.0.tar.gz
| Download URL | pychorq-0.1.0.tar.gz |
|---|---|
| Size | 192.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53a20b1b2f240d82934fc2fda4609e136f0ab813541c80f807024baeb7fcdba2
|
|
BLAKE2b-256 checksum How to use checksums |
4d046cded1bdbf9d6feb4472c5875e674edb68d3a9644a85d024073ac34c323d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 6, 2026.
Transparency logRelease files / pychorq-0.1.0-py3-none-any.whl
| Download URL | pychorq-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1157ea85a0a1dccf64e1beacc709a27f310fa8b0e78c5d316a2fba64fd61ecf7
|
|
BLAKE2b-256 checksum How to use checksums |
2026ab96f4610836107c7b84c1968548d512e629c8ac91a04107633d8587269d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 6, 2026.
Transparency logSecurity for pychorq 0.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pychorq-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 6, 2026.
Transparency logA 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.