Skip to main content

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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for pytket-offline-display-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b44ca5334e0ed9091c7e27de39103678f6663aceb00efeb4e92baeb98c0df5d6
MD5 33fc4167558c1246b33b4ddb8600b025
BLAKE2b-256 886ef53d065a8db30391d07ac4c0125a6c67526f10d279c7ca2eeb3da4e095b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytket_offline_display-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a5fe1a6e6dd8e8d0136497f921c3195989514ead0e97831dbe44c24369dff25a
MD5 d62e2d6455a9d8df79bdab2a91422013
BLAKE2b-256 47b762dbfd2bc0bb70588b025fc5640d747e07e1628f142e80c1e676c44279ce

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