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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pytket-offline-display-0.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42cd94d311682530fe7fd582dc7eb5eb4723aac9db23f75039e68cdc46cbe071 |
|
MD5 | d59680f33b53668c425e7d92b7ba6f77 |
|
BLAKE2b-256 | 9791c4a6b52e4e83e066fa85fe8895b16c5972b4955fe35a74c72aae523f3f4a |
Close
Hashes for pytket_offline_display-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fac4a6a0b2d8c84550d52a1de75e065477d929c92b295fbbd6bac7c81923642 |
|
MD5 | 9d6955ca1403608259592a0fbc6683fb |
|
BLAKE2b-256 | d82dc6b029e61d0471aaaaaac12ca057a8d6cc5fdea403bc3c794466b0eb8116 |