Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/express.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,17 @@ express(s, repr::AbstractRepresentation) = express(s, repr, UseAsState())
# Commonly used representations -- interfaces for each one defined in separate packages
##

"""Representation using kets, bras, density matrices, and superoperators governed by `QuantumOptics.jl`."""
Base.@kwdef struct QuantumOpticsRepr <: AbstractRepresentation
"""Representation using kets, bras, density matrices, and superoperators governed by `QuantumOptics.jl`.

When `lazy=true`, composite symbolic expressions (sums, products, tensor products)
are expressed into structure-preserving lazy operators (`LazySum`, `LazyProduct`,
`LazyTensor`) instead of eagerly-materialised dense/sparse operators."""
Base.@kwdef struct QuantumOpticsRepr <: AbstractRepresentation
cutoff::Int = 2
lazy::Bool = false
end
# preserve the historical positional one-argument constructor QuantumOpticsRepr(cutoff)
QuantumOpticsRepr(cutoff::Int) = QuantumOpticsRepr(cutoff, false)
"""Similar to `QuantumOpticsRepr`, but using trajectories instead of superoperators."""
struct QuantumMCRepr <: AbstractRepresentation end
"""Representation using tableaux governed by `QuantumClifford.jl`"""
Expand Down