From 745277f24306992e3fa3b0270439e24d61830ff7 Mon Sep 17 00:00:00 2001 From: Roger-luo Date: Fri, 13 Dec 2019 01:24:42 -0500 Subject: [PATCH] fix rotation printing --- src/layout.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout.jl b/src/layout.jl index 748c3c5..6cdc248 100644 --- a/src/layout.jl +++ b/src/layout.jl @@ -194,7 +194,7 @@ color(::Type{<:GeneralMatrixBlock}) = :red print_block(io::IO, g::PhaseGate) = print(io, "phase(", g.theta, ")") print_block(io::IO, S::ShiftGate) = print(io, "shift(", S.theta, ")") -print_block(io::IO, R::RotationGate) = print(io, "rot(", summary(content(R)), ", ", R.theta, ")") +print_block(io::IO, R::RotationGate) = print(io, "rot(", content(R), ", ", R.theta, ")") print_block(io::IO, x::KronBlock) = printstyled(io, "kron"; bold = true, color = color(KronBlock)) print_block(io::IO, x::ChainBlock) = printstyled(io, "chain"; bold = true, color = color(ChainBlock)) print_block(io::IO, x::UnitaryChannel) = printstyled(io, "unitary_channel"; bold = true)