Skip to content

Commit c21855b

Browse files
Fix round error
1 parent 87a9932 commit c21855b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/negativity.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ Quantum Object: type=Operator dims=[2, 2] size=(4, 4) ishermitian=true
3434
0.0+0.0im 0.0+0.0im 0.0+0.0im 0.0+0.0im
3535
0.5+0.0im 0.0+0.0im 0.0+0.0im 0.5+0.0im
3636
37-
julia> negativity(ρ, 2) |> round
38-
0.0
37+
julia> round(negativity(ρ, 2), digits=2)
38+
0.5
3939
```
4040
"""
4141
function negativity::QuantumObject, subsys::Int; logarithmic::Bool = false)

0 commit comments

Comments
 (0)