You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 12, 2026. It is now read-only.
Summary: QAOA Validation check or layout logic fails when using some IBM Quantum Backends.
Concrete example: I have a TSP with 4 nodes, so the op and idealized ansatz circuit will be 16 qubits.
When I check on my own using the pass manager for ibm_fez, I get a circuit with 156 qubits, 140 of which are idle ancillas. So it LOOKS like the logic that preps the op and the ansatz using the pass_manager is correct. Yet I get the error above when I attempt to execute.
Circuit should execute. Num qubits of the op and num qubits of the ansatz should be identical.
Any suggestions?
Is SamplingVQE perhaps passing the pre-layout version of the operator to the Estimator primitive when it should be passing the post-layout version? (Line 335 of sampling_veq.py)
(I am very new to this body of code - but a read-through of the code for the relevant methods and some experimentation on my own makes me naively think maybe...)
Environment
What is happening?
Summary: QAOA Validation check or layout logic fails when using some IBM Quantum Backends.
Concrete example: I have a TSP with 4 nodes, so the op and idealized ansatz circuit will be 16 qubits.
When I check on my own using the pass manager for ibm_fez, I get a circuit with 156 qubits, 140 of which are idle ancillas. So it LOOKS like the logic that preps the op and the ansatz using the pass_manager is correct. Yet I get the error above when I attempt to execute.
How can we reproduce the issue?
Code Summary:
What should happen?
Circuit should execute. Num qubits of the op and num qubits of the ansatz should be identical.
Any suggestions?
Is SamplingVQE perhaps passing the pre-layout version of the operator to the Estimator primitive when it should be passing the post-layout version? (Line 335 of sampling_veq.py)
(I am very new to this body of code - but a read-through of the code for the relevant methods and some experimentation on my own makes me naively think maybe...)