-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
bugSomething isn't workingSomething isn't workingmod: circuitRelated to the core of the `QuantumCircuit` class or the circuit libraryRelated to the core of the `QuantumCircuit` class or the circuit library
Description
Environment
- Qiskit version: 1.2
- Python version: [3.8, 3.12]
- Operating system: Linux, Windows, Mac
What is happening?
Given 1.2 just released I quickly looked around the application modules just as a quick check all was good (algorithms runs tests against qiskit main so as to get some heads up, but the apps just run/test off stable release) - Qiskit Finance nightly CI tests failed in several of them due to this:
File "/home/runner/work/qiskit-finance/qiskit-finance/qiskit_finance/circuit/library/probability_distributions/normal.py", line 218, in __init__
circuit = initialize.gates_to_uncompute().inverse()
File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/qiskit/circuit/library/data_preparation/initializer.py", line 91, in gates_to_uncompute
return self._stateprep._gates_to_uncompute()
AttributeError: 'StatePreparation' object has no attribute '_gates_to_uncompute'
return self._stateprep._gates_to_uncompute() |
How can we reproduce the issue?
Create an initializer Initialize instance and call its method gates_to_uncompute
What should happen?
The gates_to_uncompute
public method should work, as it used to, even if internal implementation is altered.
The change, where the method that initializer was calling got removed, seems to have come in #12178
Any suggestions?
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingmod: circuitRelated to the core of the `QuantumCircuit` class or the circuit libraryRelated to the core of the `QuantumCircuit` class or the circuit library