Skip to content
This repository was archived by the owner on Dec 18, 2021. It is now read-only.

Commit 745277f

Browse files
author
Roger-luo
committed
fix rotation printing
1 parent b02cc06 commit 745277f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layout.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ color(::Type{<:GeneralMatrixBlock}) = :red
194194

195195
print_block(io::IO, g::PhaseGate) = print(io, "phase(", g.theta, ")")
196196
print_block(io::IO, S::ShiftGate) = print(io, "shift(", S.theta, ")")
197-
print_block(io::IO, R::RotationGate) = print(io, "rot(", summary(content(R)), ", ", R.theta, ")")
197+
print_block(io::IO, R::RotationGate) = print(io, "rot(", content(R), ", ", R.theta, ")")
198198
print_block(io::IO, x::KronBlock) = printstyled(io, "kron"; bold = true, color = color(KronBlock))
199199
print_block(io::IO, x::ChainBlock) = printstyled(io, "chain"; bold = true, color = color(ChainBlock))
200200
print_block(io::IO, x::UnitaryChannel) = printstyled(io, "unitary_channel"; bold = true)

0 commit comments

Comments
 (0)