We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0cce9c commit c296994Copy full SHA for c296994
src/negativity.jl
@@ -71,7 +71,7 @@ Return the partial transpose of a density matrix ``\rho``, where `mask` is an ar
71
- `ρ_pt::QuantumObject`: The density matrix with the selected subsystems transposed.
72
"""
73
function partial_transpose(ρ::QuantumObject{Operator}, mask::Vector{Bool})
74
- any(s -> s isa EnrSpace, QO.dimensions.to) && throw(ArgumentError("partial_transpose does not support EnrSpace"))
+ any(s -> s isa EnrSpace, ρ.dimensions.to) && throw(ArgumentError("partial_transpose does not support EnrSpace"))
75
76
(length(mask) != length(ρ.dimensions)) &&
77
throw(ArgumentError("The length of \`mask\` should be equal to the length of \`ρ.dims\`."))
0 commit comments