-
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
Cannot unroll identity matrix of more than 2 qubits when coupling_map is set #4577
Comments
…h more than 2 qubits. Required simple fix of throwing away empty operations when looping through 3+ qubit gates (used to just crash when it saw this).
* fixes #4577. No longer crashes upon unrolling of some gates with more than 2 qubits. Required simple fix of throwing away empty operations when looping through 3+ qubit gates (used to just crash when it saw this). * fixed linting issues * added release note Co-authored-by: Jonathan-Shoemaker <Jonathan-Shoemaker@ibm.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…iskit#4596) * fixes Qiskit#4577. No longer crashes upon unrolling of some gates with more than 2 qubits. Required simple fix of throwing away empty operations when looping through 3+ qubit gates (used to just crash when it saw this). * fixed linting issues * added release note Co-authored-by: Jonathan-Shoemaker <Jonathan-Shoemaker@ibm.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Hi I think I'm getting a similar error QiskitError: "Cannot unroll the circuit to the given basis, ['u0', 'u1', 'u2', 'u3', 'cx', 'x', 'y', 'z', 'h', 's', 't', 'snapshot']. Instruction id not found in equivalence library and no rule found to expand." when I'm using the qiskit-jku-provider. It occurs when I try to execute the job with backend=jku_backend |
Hi @EziOzoani , that error is raised because the circuit being transpiled contains an identity gate, but the backend does not report that it can implement an identity gate ( One option is to remove the |
…4747) * fixes #4577. No longer crashes upon unrolling of some gates with more than 2 qubits. Required simple fix of throwing away empty operations when looping through 3+ qubit gates (used to just crash when it saw this). * fixed linting issues * added release note * Allow block collecting to collect groups up to any specified max size * Updated many comments. Changed around some things to be simpler. * Cleaned up Collect MultiQ Blocks Pass. Resolved issue where it would not handle classically conditioned gates properly. * Fixed things discussed in review * Remove stray release notes * Unify processing condition checks * Add release notes Co-authored-by: Jonathan-Shoemaker <Jonathan-Shoemaker@ibm.com> Co-authored-by: Matthew Treinish <mtreinish@kortar.org> Co-authored-by: Kevin Krsulich <kevin.krsulich@ibm.com>
Information
What is the current behavior?
The
transpile
function fails to unroll anUnitaryGate
containing an identity matrix of more than 2 qubits when thebackend
argument is set to be a remote quantum computer or thecoupling_map
argument is set.Steps to reproduce the problem
Notes:
backend
argument is set to be a remote quantum computer or thecoupling_map
argument is set to be a coupling map of a remote quantum computer. Callingtranspile(circuit, basis_gates=['u1', 'u2', 'u3', 'cx', 'id'])
works fine.UnitaryGate
contains an identity matrix of more than 2 qubits.What is the expected behavior?
Successfully transpile the circuit.
The text was updated successfully, but these errors were encountered: