NLocal.bind_parameters

NLocal.bind_parameters(value_dict)

Assign numeric parameters to values yielding a new circuit.

To assign new Parameter objects or bind the values in-place, without yielding a new circuit, use the assign_parameters method.

Parameters

value_dict (dict) – {parameter: value, …}

Raises
  • CircuitError – If value_dict contains parameters not present in the circuit

  • TypeError – If value_dict contains a ParameterExpression in the values.

Returns

copy of self with assignment substitution.

Return type

QuantumCircuit