Skip to content

Commit

Permalink
Fix cross-reference to SparseOperator which only exists in QOBase
Browse files Browse the repository at this point in the history
  • Loading branch information
david-pl committed Jan 26, 2024
1 parent 35e721b commit 66548ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "QuantumInterface"
uuid = "5717a53b-5d69-4fa3-b976-0bf2f97ca1e5"
authors = ["QuantumInterface.jl contributors"]
version = "0.3.3"
version = "0.3.4"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
4 changes: 3 additions & 1 deletion src/sparse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"""
sparse(op::AbstractOperator)
Convert an arbitrary operator into a [`SparseOperator`](@ref).
Convert an arbitrary operator into a sparse one.
See also: QuantumOpticsBase.SparseOperator
"""
sparse(a::AbstractOperator) = throw(ArgumentError("Direct conversion from $(typeof(a)) not implemented. Use sparse(full(op)) from QuantumOptics instead."))

Expand Down

0 comments on commit 66548ce

Please sign in to comment.