Bloqade.bitstring_hist!
— Methodbitstring_hist!(ax, register; nlargest::Int, title="", kw...)
Plot the bitstring histgram.
Arguments
ax
: the axis object frommatplotlib.pyplot
.register
: the register to plot.
Keyword Arguments
nlargest
: plot the firstnlargest
bitstrings.title
: title of the plot.kw
: other keyword supported bymatplotlib.bar
function.
Bloqade.bitstring_hist
— Methodbitstring_hist(r; kw...)
Plot the bitstring histgram.
Arguments
register
: the register to plot.
Keyword Arguments
nlargest
: plot the firstnlargest
bitstrings.title
: title of the plot.kw...
: other keyword supported bymatplotlib.bar
function.
Bloqade.get_average_rydberg_densities
— Methodget_average_rydberg_densities(atoms, reg; [C=2π * 862690 * MHz*µm^6], Ω[, ϕ, Δ], [dt=1e-3 * μs])
Return average Rydberg densities throughout an evolution.
Arguments
atoms
: a collection of atom positions.reg
: required, the register object.
Keyword Arguments
C
: optional, default unit isMHz*µm^6
, interation parameter, see alsoRydInteract
.Ω
: optional, default unit isMHz
, Rabi frequencies, divided by 2, see alsoSumOfX
.ϕ
: optional, does not have unit, the phase, seeSumOfXPhase
.Δ
: optional, default unit isMHz
, detuning parameter, seeSumOfN
.dt
: optional, default unit isμs
, time step for the evolution.solver
: optional, default solver isVern8()
, the solver for the SchrodingerProblem, seeSchrodingerProblem
.
Bloqade.plot
— FunctionBloqade.plot_densities
— Methodplot_densities(atoms::AtomList, densities::AbstractVector; color_scheme=ColorSchemes.bwr)
Given atoms
which contains the coordinates for the atoms and a vector containing the Rydberg densities, plot the Rydberg densities over the atoms.
Bloqade.rydberg_corr
— Methodrydberg_corr([op=Op.n], reg) -> Matrix
Calculates the rydberg correlation matrix.
\[\langle \text{op}_i \text{op}_j \rangle\]
here op
can be Op.n
, X
or Y
.
Arguments
op
: the correlation function, default isOp.n
.reg
: required, the register object.
Bloqade.rydberg_density
— Methodrydberg_density(reg, i::Int) -> Real
Calculates the rydberg density at site i
.
\[\langle n_i \rangle\]
Bloqade.rydberg_density
— Methodrydberg_density(reg) -> Vector
Return the rydberg density at each site.