Skip to content
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

Use public API in derive_circuit only #2

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

Cryoris
Copy link

@Cryoris Cryoris commented Jul 29, 2024

Summary

Qiskit/qiskit#12794 fixes the faulty behavior requiring the copy of circuit.data, but breaks other parts of the gradients that use the private _parameter_table. This PR uses only public API function to avoid breaking in this way in the future.

@woodsp-ibm
Copy link
Owner

woodsp-ibm commented Jul 29, 2024

@Cryoris Thanks, this is better than the fix I had which still used private access in the newer alternate path. Lets go with this then. I am trying to figure your comment in the PR to algos from the branch this targets. I am ok with merging this now to the PR to algs since this avoids any private access. Then as regards that PR I wanted to wait at least until Jakes PR was merged to main so I could drop that data copy workaround. Once that was done and the PR passed I figured it could be merged. If something else came up then it could be fixed later - otherwise that PR in main should get backported for 1.2 right. And once 1.2 is released this will then properly test against that as I am not sure, given that stable 1.2 branch has been already created, how much main is diverging, if any yet, from that prepared stable branch.

@ElePT
Copy link

ElePT commented Jul 30, 2024

(so far 1.2 should not diverge from main more than 1 or 2 PRs, all PRs tagged for 1.2 are merged to main and then backported to 1.2)

@woodsp-ibm woodsp-ibm merged commit a88ce0a into woodsp-ibm:fixrevgrad Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants