Skip to content

Commit

Permalink
Update reduced_density_matrix.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Skuwar1 authored Nov 11, 2024
1 parent 5355a5e commit 009d83a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hamiltonians/reduced_density_matrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ LOStructure(::Type{<:ReducedDensityMatrix}) = IsHermitian()
function Interfaces.dot_from_right(
left::AbstractDVec, op::ReducedDensityMatrix{P}, right::AbstractDVec
) where {P}
if (keytype(left) <: BoseFS && P > 1)
if (keytype(left) <: BoseFS && isless(1,P))
ArgumentError("ReducedDensityMatrix(<:BoseFS, p > 1) is not measurable")
end
dim = binomial(num_modes(keytype(left)), P)
Expand Down

0 comments on commit 009d83a

Please sign in to comment.