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
Generates the [Wigner quasipropability distribution](https://en.wikipedia.org/wiki/Wigner_quasiprobability_distribution) of `state` at points `xvec + 1im * yvec` in phase space. The `g` parameter is a scaling factor related to the value of ``\hbar`` in the commutation relation ``[x, y] = i \hbar`` via ``\hbar=2/g^2`` giving the default value ``\hbar=1``.
@@ -29,7 +29,7 @@ The `method` parameter can be either `WignerLaguerre()` or `WignerClenshaw()`. T
29
29
- `xvec::AbstractVector`: The x-coordinates of the phase space grid.
30
30
- `yvec::AbstractVector`: The y-coordinates of the phase space grid.
31
31
- `g::Real`: The scaling factor related to the value of ``\hbar`` in the commutation relation ``[x, y] = i \hbar`` via ``\hbar=2/g^2``.
32
-
- `method`: The method used to calculate the Wigner function. It can be either `WignerLaguerre()` or `WignerClenshaw()`, with `WignerClenshaw()` as default. The `WignerLaguerre` method has the optional `parallel` and `tol` parameters, with default values `true` and `1e-14`, respectively.
32
+
- `method::WignerSolver`: The method used to calculate the Wigner function. It can be either `WignerLaguerre()` or `WignerClenshaw()`, with `WignerClenshaw()` as default. The `WignerLaguerre` method has the optional `parallel` and `tol` parameters, with default values `true` and `1e-14`, respectively.
33
33
34
34
# Returns
35
35
- `W::Matrix`: The Wigner function of the state at the points `xvec + 1im * yvec` in phase space.
@@ -91,8 +91,8 @@ function wigner(
91
91
xvec::AbstractVector,
92
92
yvec::AbstractVector;
93
93
g::Real=√2,
94
-
method::MySolver=WignerClenshaw(),
95
-
) where {DT,OpType<:Union{BraQuantumObject,KetQuantumObject,OperatorQuantumObject},MySolver<:WignerSolver}
94
+
method::WignerSolver=WignerClenshaw(),
95
+
) where {DT,OpType<:Union{BraQuantumObject,KetQuantumObject,OperatorQuantumObject}}
0 commit comments