From 1e3c95630f41584892836e9019a4855286d4c906 Mon Sep 17 00:00:00 2001 From: apkille Date: Wed, 26 Jun 2024 11:02:56 -0400 Subject: [PATCH] printing fix --- src/QSymbolicsBase/basic_ops_homogeneous.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)")