You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, the definition is from Nielsen & Chuang, "Quantum Computation and Quantum Information". It is the square root of the fidelity defined in R. Jozsa, Journal of Modern Optics, 41:12, 2315 (1994).
15
+
Here, the definition is from [Nielsen-Chuang2011](@citet). It is the square root of the fidelity defined in [Jozsa1994](@citet).
15
16
16
17
Note that `ρ` and `σ` must be either [`Ket`](@ref) or [`Operator`](@ref).
17
18
"""
@@ -63,3 +64,27 @@ function hilbert_dist(
63
64
A =ket2dm(ρ) -ket2dm(σ)
64
65
returntr(A'* A)
65
66
end
67
+
68
+
@docraw"""
69
+
bures_dist(ρ::QuantumObject, σ::QuantumObject)
70
+
71
+
Calculate the [Bures distance](https://en.wikipedia.org/wiki/Bures_metric) between two [`QuantumObject`](@ref):
Here, the definition of [`fidelity`](@ref) ``F`` is from [Nielsen-Chuang2011](@citet). It is the square root of the fidelity defined in [Jozsa1994](@citet).
75
+
76
+
Note that `ρ` and `σ` must be either [`Ket`](@ref) or [`Operator`](@ref).
Here, the definition of [`fidelity`](@ref) ``F`` is from [Nielsen-Chuang2011](@citet). It is the square root of the fidelity defined in [Jozsa1994](@citet).
87
+
88
+
Note that `ρ` and `σ` must be either [`Ket`](@ref) or [`Operator`](@ref).
0 commit comments