I used a circuit with one parametrized gate U(theta, phi, lambda), than I fixed the parameters with qc.bind_parameters and it's worked well. But the only step that don't work is the execution in a device (real and simulator) and a get the following error output:

'Mismatch between run_config.parameter_binds and all circuit parameters. Parameter binds: [] Circuit parameters: [ParameterView([Parameter(lamb), Parameter(phi), Parameter(theta)])]'


1 Answer 1


Actually bind_parameters() didn't work properly. You can easily see that by noticing that the parameter names appear in the circuit plot. For bound parameters, parameter values are shown in the circuit plot instead of parameter names.

This issue is caused by the controlled-U gate. For details see here: https://github.com/Qiskit/qiskit-terra/pull/9118.

As a workaround, you can transpile the circuit before calling bind_parameters():

qc1 = transpile(qc1, basis_gates=['cx', 'u'])
qc = qc1.bind_parameters(variables)
  • $\begingroup$ The problem is when running the circuit: $\endgroup$ Nov 19, 2022 at 11:11
  • $\begingroup$ I updated my answer based on the extra details you provided $\endgroup$ Nov 19, 2022 at 15:10
  • $\begingroup$ Thank you for the help! $\endgroup$ Nov 20, 2022 at 12:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.