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.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.2.tar.gz
(518.0 kB
view hashes)
Built Distribution
Close
Hashes for pytket-offline-display-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 084b0bd95157dfb889f8aa6cc9bf55247f2cefe32b51bd093a7c13151a7445aa |
|
MD5 | 9f5eac78c50d18b5e43945f13f69507b |
|
BLAKE2b-256 | a3132d0cb4574b7d1db2f02132de1e283e5bf68a3945563235afa224e9fa2aee |
Close
Hashes for pytket_offline_display-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 302897a3831366e2ad2b4b30f04124a4812452ba8293ec18e217f01dc892bec1 |
|
MD5 | 303a962156e404835045942f029408ae |
|
BLAKE2b-256 | eb167580b5ab3516329e75799f734e77d0257c4b77ac21a277243fb208b514f9 |