Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate express and AbstractRepresentation type from QuantumSymbolics #46

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions src/QuantumInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,6 @@ include("julia_linalg.jl")
include("sparse.jl")

include("sortedindices.jl")
include("express.jl")

end # module
19 changes: 19 additions & 0 deletions src/express.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
function express end

express(obj) = express(obj, QuantumOpticsRepr()) # The default representation

Check warning on line 3 in src/express.jl

View check run for this annotation

Codecov / codecov/patch

src/express.jl#L3

Added line #L3 was not covered by tests

"""An abstract type for the supported representation of quantum objects."""
abstract type AbstractRepresentation end

##
# Commonly used representations -- interfaces for each one defined in separate packages
##

"""Representation using kets, bras, density matrices, and superoperators governed by `QuantumOptics.jl`."""
@kwdef struct QuantumOpticsRepr <: AbstractRepresentation
cutoff::Int = 2
end
"""Similar to `QuantumOpticsRepr`, but using trajectories instead of superoperators."""
struct QuantumMCRepr <: AbstractRepresentation end
"""Representation using tableaux governed by `QuantumClifford.jl`"""
struct CliffordRepr <: AbstractRepresentation end
Loading