Skip to content

Commit

Permalink
printing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
apkille committed Jun 26, 2024
1 parent 5066d34 commit 1e3c956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QSymbolicsBase/basic_ops_homogeneous.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function Base.show(io::IO, x::SScaledKet)
end
const SScaledOperator = SScaled{AbstractOperator}
function Base.show(io::IO, x::SScaledOperator)
if x.coeff isa Number
if x.coeff isa Real
print(io, "$(x.coeff)$(x.obj)")
else
print(io, "($(x.coeff))$(x.obj)")
Expand Down

0 comments on commit 1e3c956

Please sign in to comment.