-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
optimization_level=3 triggers error in unrolling #2349
Comments
…2357) Fixes Qiskit#2349 When a basis is not defined for a circuit, the default basis set is the set of gates used in the circuit. This makes total sense to me. However, passes might add gates and the might be out of that bases. For this reason, I'm suggesting to add the base basis (UBase and CXBase) as part of the default basis set. If I understand correctly, the base basis (is that their name?) is supported by every backend by definition, so the gates that are added by the transpiler can run in the backend. (cherry picked from commit 4bfcc5d)
…2386) Fixes #2349 When a basis is not defined for a circuit, the default basis set is the set of gates used in the circuit. This makes total sense to me. However, passes might add gates and the might be out of that bases. For this reason, I'm suggesting to add the base basis (UBase and CXBase) as part of the default basis set. If I understand correctly, the base basis (is that their name?) is supported by every backend by definition, so the gates that are added by the transpiler can run in the backend. (cherry picked from commit 4bfcc5d)
I encountered the same error. QiskitError: 'Cannot unroll the circuit to the given basis, method. No rule to expand instruction ry.'QiskitError Traceback (most recent call last) in gradients(params, feature, label, bias) in execute_circuit(params, feature, bias) /opt/anaconda3/lib/python3.7/site-packages/qiskit/execute.py in execute(experiments, backend, basis_gates, coupling_map, backend_properties, initial_layout, seed_transpiler, optimization_level, pass_manager, qobj_id, qobj_header, shots, memory, max_credits, seed_simulator, default_qubit_los, default_meas_los, schedule_los, meas_level, meas_return, memory_slots, memory_slot_size, rep_time, parameter_binds, schedule_circuit, inst_map, meas_map, scheduling_method, **run_config) /opt/anaconda3/lib/python3.7/site-packages/qiskit/compiler/transpile.py in transpile(circuits, backend, basis_gates, coupling_map, backend_properties, initial_layout, layout_method, routing_method, seed_transpiler, optimization_level, pass_manager, callback, output_name) /opt/anaconda3/lib/python3.7/site-packages/qiskit/tools/parallel.py in parallel_map(task, values, task_args, task_kwargs, num_processes) /opt/anaconda3/lib/python3.7/site-packages/qiskit/compiler/transpile.py in _transpile_circuit(circuit_config_tuple) /opt/anaconda3/lib/python3.7/site-packages/qiskit/transpiler/passmanager.py in run(self, circuits, output_name, callback) /opt/anaconda3/lib/python3.7/site-packages/qiskit/transpiler/passmanager.py in _run_single_circuit(self, circuit, output_name, callback) /opt/anaconda3/lib/python3.7/site-packages/qiskit/transpiler/runningpassmanager.py in run(failed resolving arguments) /opt/anaconda3/lib/python3.7/site-packages/qiskit/transpiler/runningpassmanager.py in do_pass(self, pass, dag, options) /opt/anaconda3/lib/python3.7/site-packages/qiskit/transpiler/runningpassmanager.py in run_this_pass(self, pass, dag) /opt/anaconda3/lib/python3.7/site-packages/qiskit/transpiler/passes/basis/unroller.py in run(self, dag) QiskitError: 'Cannot unroll the circuit to the given basis, method. No rule to expand instruction ry.' |
Hi @sassan72 , this sounds like a separate issue (that is triggering the same error). Can you open a new issue with your python version, qiskit version, and some example code that replicates the error you're seeing? |
Originally posted by @itoko in #2339 (comment)
The follow input triggers and an issue in the unroller.
The text was updated successfully, but these errors were encountered: