Skip to main content

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


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)

Uploaded Source

Built Distribution

pytket_offline_display-0.0.4-py3-none-any.whl (235.5 kB view details)

Uploaded Python 3

File details

Details for the file pytket-offline-display-0.0.4.tar.gz.

File metadata

File hashes

Hashes for pytket-offline-display-0.0.4.tar.gz
Algorithm Hash digest
SHA256 dc02b363cc702e2da196d9f9295b988f0e29f94d7251c076d61fee8a338fbd03
MD5 26153a19e7b4ab8cb636ae285a063a2f
BLAKE2b-256 84e500fe7d7998449a360a63ed3994c9d76894c7dfe276e7b010a1b9de8c91b6

See more details on using hashes here.

File details

Details for the file pytket_offline_display-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pytket_offline_display-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ac5303317e8b98be3d1452b87cd16c7091c93e102a8f51d51fd63c6349e121a5
MD5 367dfcfba509514dee328776bbde0c42
BLAKE2b-256 fd9ab89c57f691b461da297e864634ebb459d98038a28e0e9dac0b4fec6f21ae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page