From 3b0d9a3842d5328cfa5148e1eb1cfd17df46f52e Mon Sep 17 00:00:00 2001 From: Fe-r-oz Date: Mon, 25 Nov 2024 02:13:17 +0500 Subject: [PATCH] prevent world age --- src/nonclifford.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/nonclifford.jl b/src/nonclifford.jl index 6c0b7f033..43ff3ed8d 100644 --- a/src/nonclifford.jl +++ b/src/nonclifford.jl @@ -71,9 +71,7 @@ function Base.show(io::IO, s::GeneralizedStabilizer) println(io, "A mixture ∑ ϕᵢⱼ Pᵢ ρ Pⱼ† where ρ is") show(io,s.stab) println(io) - print(io, "with ϕᵢⱼ | Pᵢ | Pⱼ:") - for (di, dj) in sort(collect(keys(s.destabweights))) - χ = s.destabweights[(di, dj)] + for ((di, dj), χ) in sort(collect(s.destabweights), by = x -> (x[1], x[2])) println(io) print(io, " ") print(IOContext(io, :compact => true), χ)