qiskit.circuit.ParameterExpression.assign¶
- ParameterExpression.assign(parameter, value)[código fonte]¶
Assign one parameter to a value, which can either be numeric or another parameter expression.
- Parâmetros
parameter (Parameter) – A parameter in this expression whose value will be updated.
value (
Union
[ParameterExpression
,float
]) – The new value to bind to.
- Tipo de retorno
- Retorno
A new expression parameterized by any parameters which were not bound by assignment.