Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "QuantumInputOutput"
uuid = "18f9eda6-924c-47c7-a881-996695cfd7c6"
version = "0.4.0"
version = "0.4.1"

[deps]
DataInterpolations = "82cc6244-b520-54b8-b5a6-8a565e85f1d0"
Expand Down
9 changes: 7 additions & 2 deletions src/SLH.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,15 @@ SLH triple with scattering matrix `S`, Lindblad vector `L`, and Hamiltonian `H`.

See also [`▷`](@ref), [`⊞`](@ref), [`feedback`](@ref)
"""
struct SLH{N,ST,LT,HT}
scattering::SMatrix{N,N,ST}
struct SLH{N,ST,LT,HT,L}
scattering::SMatrix{N,N,ST,L}
lindblad::SVector{N,LT}
hamiltonian::HT
function SLH{N,ST,LT,HT}(
S::SMatrix{N,N,ST,L}, lindblad::SVector{N,LT}, H::HT
) where {N,ST,LT,HT,L}
return new{N,ST,LT,HT,L}(S, lindblad, H)
end
end

"""
Expand Down
Loading