-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data preparation initializer.py is calling a method on StatePreparation that no longer exists #12969
Comments
Thank you @woodsp-ibm for detecting this bug. Could you please check if #12976 fixes it? |
Thanks @ShellyGarion. Looking at the code, I believe that the fix should work (though let's wait for the confirmation from @woodsp-ibm). I do have one one possibly naive question: the qiskit-finance code calls
If I understand correctly, Of course, this does not invalidate the PR, as we still need to ensure that the publicly documented API function |
The original synthesis code (before it was replaced by Isometry) was:
So, it basically only does |
The problem was that |
@ShellyGarion I copied the initializer.py from your branch into my local install off Qiskit main and with that tests that failed before now pass. So yes it fixes things. |
Environment
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:
qiskit/qiskit/circuit/library/data_preparation/initializer.py
Line 91 in 713ab38
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
The text was updated successfully, but these errors were encountered: