Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendesignolle committed Jun 27, 2024
1 parent 1ca1c06 commit 87bfe77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entropy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Computes the (quantum) relative entropy tr(`ρ` (log `ρ` - log `σ`)) between p
Reference: [Quantum relative entropy](https://en.wikipedia.org/wiki/Quantum_relative_entropy).
"""
function relative_entropy(base::Real, ρ::AbstractMatrix{T}, σ::AbstractMatrix{S}) where {T<:Real,S<:Real}
function relative_entropy(base::Real, ρ::AbstractMatrix{T}, σ::AbstractMatrix{S}) where {T<:Number,S<:Number}
R = real(promote_type(T, S))
if size(ρ) != size(σ)
throw(ArgumentError("ρ and σ have the same size."))
Expand Down

0 comments on commit 87bfe77

Please sign in to comment.