Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DNA386 committed Oct 10, 2024
1 parent 242f90a commit d5514d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pytket/docs/display.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ Example usage:
from pytket.circuit.display import get_circuit_renderer

circuit_renderer = get_circuit_renderer() # Instantiate a circuit renderer
circuit_renderer.set_render_options(zx_style=True) # Configure render options
circuit_renderer.condense_c_bits = False # You can also set the properties on the instance directly
circuit_renderer.set_render_options(zx_style=True, min_height="400px") # Configure render options
circuit_renderer.config.render_options.condense_c_bits = False # You can also set the properties on the instance directly
circuit_renderer.config.min_height = "300px" # Change the display height directly

print("Render options:")
print(circuit_renderer.get_render_options()) # View currently set render options

circuit_renderer.min_height = "300px" # Change the display height

circ = Circuit(2,2) # Define Circuit
circ.H(0).H(1).CX(0, 1).Rz(0.4, 1).CX(0, 1).H(0).H(1).measure_all()

Expand Down

0 comments on commit d5514d6

Please sign in to comment.