foldfelis-QO / QuantumStatePlots.jl

Plot Wigner function and density matrix generated by QuantumStateBase.jl

Home Page:https://foldfelis-qo.github.io/QuantumStatePlots.jl/stable

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QuantumStatePlots

Stable Dev CI codecov

Example

The quantum state and its wigner function:

julia> using QuantumStateBase

julia> ρ = SqueezedState(0.8, π/8, Matrix, dim=100)

julia> w = wigner(ρ, LinRange(-3, 3, 101), LinRange(-3, 3, 101));

Wigner function

Surface

julia> using QuantumStatePlots, Plots

julia> surface(w)

Heatmap

julia> using QuantumStatePlots, Plots

julia> heatmap(w)

Contour

julia> using QuantumStatePlots, Plots

julia> contour(w)

Density matrix

Real part

julia> using QuantumStatePlots, Plots

julia> plot_real(ρ, 35)

Imag part

julia> using QuantumStatePlots, Plots

julia> plot_imag(ρ, 35)

Reference

About

Plot Wigner function and density matrix generated by QuantumStateBase.jl

https://foldfelis-qo.github.io/QuantumStatePlots.jl/stable

License:MIT License


Languages

Language:Julia 100.0%