Python module for displaying pytket circuits when offline.
Project description
Pytket-offline-display
This pytket extension package provides offline circuit rendering functionality.
To use, first install the package with pip
:
pip install pytket-offline-display
Then replace the usual pytket.circuit.display
import with pytket.extensions.offline_display
. For example:
from pytket.extensions.offline_display import render_circuit_jupyter
from pytket import Circuit
circ = Circuit(2,2)
circ.H(0)
circ.CX(0,1)
circ.measure_all()
render_circuit_jupyter(circ)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytket-offline-display-0.0.4.tar.gz
(288.1 kB
view details)
Built Distribution
File details
Details for the file pytket-offline-display-0.0.4.tar.gz
.
File metadata
- Download URL: pytket-offline-display-0.0.4.tar.gz
- Upload date:
- Size: 288.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc02b363cc702e2da196d9f9295b988f0e29f94d7251c076d61fee8a338fbd03 |
|
MD5 | 26153a19e7b4ab8cb636ae285a063a2f |
|
BLAKE2b-256 | 84e500fe7d7998449a360a63ed3994c9d76894c7dfe276e7b010a1b9de8c91b6 |
File details
Details for the file pytket_offline_display-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: pytket_offline_display-0.0.4-py3-none-any.whl
- Upload date:
- Size: 235.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac5303317e8b98be3d1452b87cd16c7091c93e102a8f51d51fd63c6349e121a5 |
|
MD5 | 367dfcfba509514dee328776bbde0c42 |
|
BLAKE2b-256 | fd9ab89c57f691b461da297e864634ebb459d98038a28e0e9dac0b4fec6f21ae |