The simple code below fails when running the type-inference test
using Test
using QuantumToolbox
A = sprand(ComplexF64, 100, 100, 0.1)
@inferred QuantumObject(A)
return type QuantumObject{SparseMatrixCSC{ComplexF64, Int64}, OperatorQuantumObject} does not match inferred return type Union{QuantumObject{SparseMatrixCSC{ComplexF64, Int64}, BraQuantumObject}, QuantumObject{SparseMatrixCSC{ComplexF64, Int64}, KetQuantumObject}, QuantumObject{SparseMatrixCSC{ComplexF64, Int64}, OperatorQuantumObject}}
I think that we should fix it using multiple dispatch when calling it.
The simple code below fails when running the type-inference test
I think that we should fix it using multiple dispatch when calling it.