Skip to content

Commit

Permalink
removing display commmand
Browse files Browse the repository at this point in the history
  • Loading branch information
DanPuzzuoli committed Sep 24, 2024
1 parent 8254718 commit a1dd40e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/tutorials/Lindblad_dynamics_simulation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ parameters can be systematically analyzed - we encourage you to try it!
ax.set_xlabel('$t$', fontsize = fontsize)
ax.set_title('Mean Bloch vector vs. $t$', fontsize = fontsize)

display(plot_bloch_vector([x_mean[-1], y_mean[-1], z_mean[-1]],
f'Mean Bloch vector at $t = {t_eval[-1]}$'))
plot_bloch_vector([x_mean[-1], y_mean[-1], z_mean[-1]],
f'Mean Bloch vector at $t = {t_eval[-1]}$')

if N > 1 and ((abs(x_mean[-1]) > 1e-5 and abs(x_data[0, -1] / x_mean[-1] - 1) > 1e-5 or
(abs(z_mean[-1]) > 1e-5 and abs(z_data[1, -1] / z_mean[-1] - 1) > 1e-5))):
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/Rabi_oscillations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ gate.
ax.set_title('Bloch vector vs. $t$', fontsize = fontsize)
plt.show()

display(plot_bloch_vector([x_data[-1], y_data[-1], z_data[-1]],
f'Bloch vector at $t = {t_eval[-1]}$'))
plot_bloch_vector([x_data[-1], y_data[-1], z_data[-1]],
f'Bloch vector at $t = {t_eval[-1]}$')

plot_qubit_dynamics(sol, t_eval, X, Y, Z)

Expand Down

0 comments on commit a1dd40e

Please sign in to comment.