diff --git a/src/QSymbolicsBase/basic_ops_homogeneous.jl b/src/QSymbolicsBase/basic_ops_homogeneous.jl index ad64ec7..d4df9bf 100644 --- a/src/QSymbolicsBase/basic_ops_homogeneous.jl +++ b/src/QSymbolicsBase/basic_ops_homogeneous.jl @@ -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)")