Skip to content

Commit

Permalink
Merge pull request #113 from BoxiLi/docfix
Browse files Browse the repository at this point in the history
Minor fix for plots in doc
  • Loading branch information
BoxiLi committed Nov 24, 2021
2 parents bad11dd + 27671db commit fa43a2a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doc/source/qip-processor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,16 @@ The second example demonstrates a biased Gaussian noise on the pulse amplitude.
processor.add_noise(gaussnoise)

# Plot the ideal pulse
fig1, axis1 = processor.plot_pulses(title="Original control amplitude", figsize=(5,3))
fig1, axis1 = processor.plot_pulses(
title="Original control amplitude", figsize=(5,3),
use_control_latex=False)

# Plot the noisy pulse
qobjevo, _ = processor.get_qobjevo(noisy=True)
noisy_coeff = qobjevo.to_list()[1][1] + qobjevo.to_list()[2][1]
fig2, axis2 = processor.plot_pulses(title="Noisy control amplitude", figsize=(5,3))
fig2, axis2 = processor.plot_pulses(
title="Noisy control amplitude", figsize=(5,3),
use_control_latex=False)
axis2[0].step(qobjevo.tlist, noisy_coeff)


Expand Down

0 comments on commit fa43a2a

Please sign in to comment.