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

Commit

Permalink
fix rotation printing
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger-luo committed Dec 13, 2019
1 parent b02cc06 commit 745277f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 745277f

Please sign in to comment.