Python module for displaying pytket circuits when offline.
Project description
Pytket-offline-renderer
This pytket extension package provides offline circuit rendering functionality.
To use, first install the package with pip
:
pip install pytket-offline-renderer
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
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.3.tar.gz
(288.1 kB
view hashes)
Built Distribution
Close
Hashes for pytket-offline-display-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b44ca5334e0ed9091c7e27de39103678f6663aceb00efeb4e92baeb98c0df5d6 |
|
MD5 | 33fc4167558c1246b33b4ddb8600b025 |
|
BLAKE2b-256 | 886ef53d065a8db30391d07ac4c0125a6c67526f10d279c7ca2eeb3da4e095b7 |
Close
Hashes for pytket_offline_display-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5fe1a6e6dd8e8d0136497f921c3195989514ead0e97831dbe44c24369dff25a |
|
MD5 | d62e2d6455a9d8df79bdab2a91422013 |
|
BLAKE2b-256 | 47b762dbfd2bc0bb70588b025fc5640d747e07e1628f142e80c1e676c44279ce |