Closed woodsp-ibm closed 5 months ago
Oh, I see in the nightlies that mypy has been failing too recently. I'll see about fixing that in this PR too. At cursory glance it started with the latest mypy release.
qiskit_algorithms/gradients/reverse/derive_circuit.py: note: In function "derive_circuit":
qiskit_algorithms/gradients/reverse/derive_circuit.py:153: error: Incompatible types in assignment (expression has type "complex", variable has type "int") [assignment]
Found 1 error in 1 file (checked 218 source files)
Totals | |
---|---|
Change from base Build 8804383908: | 0.0% |
Covered Lines: | 6496 |
Relevant Lines: | 7169 |
Summary
Qiskit tests against main have been failing lint recently due to power() in QuantumCircuit gaining an extra parameter. With 1.1 going live shortly, where it will become the stable version tested against here, this amends the test to work and pass lint for existing versions of Qiskit e.g 0.46 and 1.0 as well as 1.1
Details and comments
As it's just a test case fix there is no reno needed. I marked this for backporting to stable as it will affect any builds done there once 1.1 releases.