-
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
Transpiler should raise when conflicting parameters, not just ignore them silently #4060
Conversation
can we just remove the This is in the docstring:
|
Agree. Let's depreate the parameter in this PR too! |
releasenotes/notes/parameter_conflict_in_transpile-fc67d76288b480c4.yaml
Show resolved
Hide resolved
…them silently (Qiskit#4060) * Qiskit#4003 (review) * cast circuit parameter as a list sooner than later * multiple circuits for passmanager.run * remove pass_manager from the transpile_args * set default optimization in a single place * conflicting args * lint * reno * lint! * empty pass manager is a pass manager * other redundant param * deprecate parameter * remove deprecated tranpile call from test.python.transpiler * remove deprecated tranpile call from test.python.compiler * last fix * unsed import * test/python/circuit/test_unitary.py * unused import * execute * lint * reno Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
If
transpile
is called withpass_manager
, most of the additional parameters are already embed in the pass manager configuration and they are currently silently ignored.This PR raises when that happen and includes a small refactor to reorganize the code.