diff --git a/docs/digital_analog_qc/pulser-basic.md b/docs/digital_analog_qc/pulser-basic.md index 4c7a4e6f..19a8dbea 100644 --- a/docs/digital_analog_qc/pulser-basic.md +++ b/docs/digital_analog_qc/pulser-basic.md @@ -216,7 +216,7 @@ params = { "th21": torch.rand(1), # rad } -model.assign_parameters(params).draw(draw_phase_area=True, show=True) +model.assign_parameters(params).draw(draw_phase_area=True, show=False) from docs import docsutils # markdown-exec: hide print(docsutils.fig_to_html(plt.gcf())) # markdown-exec: hide ``` diff --git a/docs/tutorials/register.md b/docs/tutorials/register.md index 1eb5e52d..c91d6e37 100644 --- a/docs/tutorials/register.md +++ b/docs/tutorials/register.md @@ -30,7 +30,7 @@ axs = axs.flatten() for i, (args, xl, yl) in enumerate(argss): reg = Register.lattice(*args) plt.sca(axs[i]) - reg.draw() + reg.draw(show=False) axs[i].set_title(f"{args[0]}") axs[i].set(aspect="equal") axs[i].set_xlim(*xl) @@ -59,7 +59,7 @@ from qadence import Register reg = Register.honeycomb_lattice(2, 3) import matplotlib.pyplot as plt # markdown-exec: hide plt.clf() # markdown-exec: hide -reg.draw() +reg.draw(show=False) from docs import docsutils # markdown-exec: hide fig = plt.gcf() # markdown-exec: hide fig.set_size_inches(3, 3) # markdown-exec: hide diff --git a/docs/tutorials/state_init.md b/docs/tutorials/state_init.md index 3d2738b0..933f2682 100644 --- a/docs/tutorials/state_init.md +++ b/docs/tutorials/state_init.md @@ -36,7 +36,7 @@ from qadence import product_block, tag, hea, QuantumCircuit from qadence.draw import display state_prep_block = product_block("01") -display(state_prep_block) +# display(state_prep_block) # Let's now prepare a circuit. n_qubits = 4