Skip to content

Commit

Permalink
Added 'cushion' to upper ylim of amplitude plot
Browse files Browse the repository at this point in the history
  • Loading branch information
leespen1 committed Mar 27, 2024
1 parent 7fa4918 commit a835633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/ControlVisualizer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function QuantumGateDesign.visualize_control(controls; n_points=101, prob=missin
max_q = maximum(getindex.(q_vals_whole_obsv[i][], 2))
min_p = minimum(getindex.(p_vals_whole_obsv[i][], 2))
min_q = minimum(getindex.(q_vals_whole_obsv[i][], 2))
max_control_amp = max(max_control_amp, max_p, max_q)
max_control_amp = max(max_control_amp, 1.25*max_p, 1.25*max_q)
min_control_amp = min(min_control_amp, min_p, min_q)
end

Expand Down

0 comments on commit a835633

Please sign in to comment.