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

Cleanup internal usage of qiskit.passmanager in qiskit.transpiler to avoid warnings #11369

Closed
mtreinish opened this issue Dec 4, 2023 · 1 comment
Milestone

Comments

@mtreinish
Copy link
Member

mtreinish commented Dec 4, 2023

I guess until the code path really gets deprecated it doesn't really matter, but I just wanted to note that while testing the 1.0 beta I tried looking at all warnings and noticed that the

PendingDeprecationWarning: Building a flow controller with keyword arguments is going to be deprecated. Custom controllers must be explicitly instantiated and appended to the task list.

warning gets generated a lot internally by Qiskit. For instance, this code generates it:

import warnings

from qiskit import QuantumCircuit, transpile


warnings.simplefilter("default", PendingDeprecationWarning)

qc = QuantumCircuit(1, 1)
qc.measure_all()

transpile(qc, optimization_level=0)

Originally posted by @wshanks in #10127 (comment)

@mtreinish mtreinish added this to the 1.0.0 milestone Dec 4, 2023
@mtreinish
Copy link
Member Author

I think this has been closed by #11448. There's still a pending followup PR #11494 but I think the warnings flagged by this issue have already been fixed so I'm going to close this.

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

No branches or pull requests

1 participant