Metadata-Version: 2.1
Name: pytket-offline-display
Version: 0.0.3
Summary: Python module for displaying pytket circuits when offline.
Author: TKET development team
Author-email: tket-support@cambridgequantum.com
License: Apache 2
Project-URL: Documentation, https://cqcl.github.io/tket/pytket/api/index.html
Project-URL: Source, https://github.com/CQCL/pytket-offline-renderer
Project-URL: Tracker, https://github.com/CQCL/pytket-offline-renderer/issues
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# Pytket-offline-renderer

This [pytket](https://github.com/CQCL/pytket) extension package provides offline circuit rendering functionality.
To use, first install the package with `pip`:

```shell
pip install pytket-offline-renderer
```

Then replace the usual `pytket.circuit.display` import with `pytket.extensions.offline_display`. For example:

```python
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)
```
