SparsePauliOp
incorrectly sets non-zero imaginary component
#13522
Labels
bug
Something isn't working
mod: quantum info
Related to the Quantum Info module (States & Operators)
Environment
What is happening?
When a
SparsePauliOp
object is instantiated with a long string of Y's (greater than 100), the imaginary component of the coefficients is non-zero (but trivially small, ~1e-15). This results in errors when submitting jobs usingqiskit-ibm-runtime
which throws an error when using theSparsePauliOp
as the expectation value to estimate.How can we reproduce the issue?
What should happen?
A high-weight
SparsePauliOp
, when no coefficients are specified, should possess coeffcients =[1.0, 0.0]
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: