-
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
specifying nonexistent synthesis plugin does not raise error #11355
Comments
Can you assign me to this? |
I was playing around with from qiskit.providers.fake_provider import FakeBelem
from qiskit.transpiler.preset_passmanagers import generate_preset_pass_manager
backend = FakeBelem()
pass_manager = generate_preset_pass_manager(
optimization_level=3, backend=backend, unitary_synthesis_method="aqc"
)
pass_manager.run(matrix) Throws errors complaining that basically say |
The input to qc = QuantumCircuit(num_qubits)
qc.unitary(matrix, range(num_qubits)) and then pass qc to The other option is to manually call the aqc synthesis directly. There is a code sample on how to do this here: https://docs.quantum.ibm.com/api/qiskit/synthesis_aqc but it's much more manual. To solve the original issue we just need to add a check to |
* fix issue #11355 * update docstring * added test * rename non-method * Update releasenotes/notes/move-synthesis-plugin-error-61e3683bf5a0c225.yaml * Reword messages --------- Co-authored-by: Kevin J. Sung <[email protected]> Co-authored-by: Jake Lishman <[email protected]>
Environment
What is happening?
generate_preset_pass_manager
does not raise an error for a nonexistent synthesis plugin, even though it does for a nonexistent stage plugin.How can we reproduce the issue?
What should happen?
This does not raise an error. Instead, an error is raised when the pass manager is run. This is inconsistent with the transpiler stage plugins. For example, this raises an error:
Any suggestions?
The error should be raised when the pass manager is created, not when it is run.
The text was updated successfully, but these errors were encountered: