You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
) where {SType<:Union{KetQuantumObject,OperatorQuantumObject}}
152
153
@@ -156,6 +157,7 @@ Plot the [Fock state](https://en.wikipedia.org/wiki/Fock_state) distribution of
156
157
- `library::Val{:CairoMakie}`: The plotting library to use.
157
158
- `ρ::QuantumObject`: The quantum state for which the Fock state distribution is to be plotted. It can be either a [`Ket`](@ref), [`Bra`](@ref), or [`Operator`](@ref).
158
159
- `location::Union{GridPosition,Nothing}`: The location of the plot in the layout. If `nothing`, the plot is created in a new figure. Default is `nothing`.
160
+
- `atol::Real`: The tolerance for checking normalization condition. Default is `1e-6`.
159
161
- `fock_numbers::Union{Nothing, AbstractVector}`: list of x ticklabels to represent fock numbers, default is `nothing`.
160
162
- `unit_y_range::Bool`: Set y-axis limits [0, 1] or not, default is `true`.
161
163
- `kwargs...`: Additional keyword arguments to pass to the plotting function.
@@ -195,11 +197,12 @@ function _plot_fock_distribution(
0 commit comments