Skip to content

Commit 00daa07

Browse files
Importing metrics from QuantumInterface.jl (#185)
1 parent 9003b8b commit 00daa07

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ FastGaussQuadrature = "0.5, 1"
2525
FillArrays = "0.13, 1"
2626
LRUCache = "1"
2727
LinearAlgebra = "1"
28-
QuantumInterface = "0.3.3"
28+
QuantumInterface = "0.3.9"
2929
Random = "1"
3030
RecursiveArrayTools = "3"
3131
SparseArrays = "1"

src/QuantumOpticsBase.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import RecursiveArrayTools
77
import QuantumInterface: dagger, directsum, , dm, embed, nsubsystems, expect, identityoperator, identitysuperoperator,
88
permutesystems, projector, ptrace, reduced, tensor, , variance, apply!, basis, AbstractSuperOperator
99

10+
# metrics
11+
import QuantumInterface: entropy_vn, fidelity, logarithmic_negativity
12+
1013
# index helpers
1114
import QuantumInterface: complement, remove, shiftremove, reducedindices!, check_indices, check_sortedindices, check_embed_indices
1215

src/metrics.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ function entropy_vn(rho::DenseOpType{B,B}; tol=1e-15) where B
151151
end
152152
return entr
153153
end
154-
entropy_vn(psi::StateVector; kwargs...) = entropy_vn(dm(psi); kwargs...)
155154

156155
"""
157156
entropy_renyi(rho, α::Integer=2)

0 commit comments

Comments
 (0)