pytket.circuit.display

Display a circuit as html.

pytket.circuit.display.render_circuit_as_html(circuit: Union[Dict[str, Union[str, float, dict]], Circuit], jupyter: bool = False) Optional[str]

Render a circuit as HTML for inline display.

Parameters
  • circuit – the circuit to render.

  • jupyter – set to true to render generated HTML in cell output.

pytket.circuit.display.render_circuit_jupyter(circuit: Union[Dict[str, Union[str, float, dict]], Circuit]) None

Render a circuit as jupyter cell output.

Parameters

circuit – the circuit to render.