Skip to content

Commit b97f64d

Browse files
Minor changes
1 parent 487f6ba commit b97f64d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wigner.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ WignerLaguerre(; parallel = false, tol = 1e-14) = WignerLaguerre(parallel, tol)
1717
xvec::AbstractVector,
1818
yvec::AbstractVector;
1919
g::Real = √2,
20-
method::MySolver = WignerClenshaw(),
20+
method::WignerSolver = WignerClenshaw(),
2121
)
2222
2323
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
2929
- `xvec::AbstractVector`: The x-coordinates of the phase space grid.
3030
- `yvec::AbstractVector`: The y-coordinates of the phase space grid.
3131
- `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.
3333
3434
# Returns
3535
- `W::Matrix`: The Wigner function of the state at the points `xvec + 1im * yvec` in phase space.
@@ -91,8 +91,8 @@ function wigner(
9191
xvec::AbstractVector,
9292
yvec::AbstractVector;
9393
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}}
9696
ρ = ket2dm(state).data
9797

9898
return _wigner(ρ, xvec, yvec, g, method)

0 commit comments

Comments
 (0)