Python module for displaying pytket circuits when offline.
Project description
Pytket-offline-renderer
This pytket extension package provides offline circuit rendering functionality.
To use, simply replace the usual pytket.circuit.display
import with pytket.circuit.offline_display
, for example:
from pytket.circuit.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.1.tar.gz
(471.0 kB
view details)
Built Distribution
File details
Details for the file pytket-offline-display-0.0.1.tar.gz
.
File metadata
- Download URL: pytket-offline-display-0.0.1.tar.gz
- Upload date:
- Size: 471.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d294c9bab4cbf625be929587167a9de581e76369bc163c49c3e69ff1aec4669 |
|
MD5 | 561140d7a3ef98ea9e5e75247f6fd393 |
|
BLAKE2b-256 | 7b451e50c7d3170e9cf244b55fe88a3b82bf974895e44892bb78382cc55ea235 |
File details
Details for the file pytket_offline_display-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pytket_offline_display-0.0.1-py3-none-any.whl
- Upload date:
- Size: 95.7 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 | 747c7e252e92fc8ac667cdce340656aa394d05267e40cccbfa41ea0584ca0a79 |
|
MD5 | e81959bfa1367bc3d0c5e6680502a569 |
|
BLAKE2b-256 | d98a039712a053fb0ecc3304f3af9b3f044563c87cd0d6f093a7774f5dd531b6 |