qiskit.circuit.ParameterExpression.subs¶
- ParameterExpression.subs(parameter_map)[código fonte]¶
Returns a new Expression with replacement Parameters.
- Parâmetros
parameter_map (
Dict
) – Mapping from Parameters in self to the ParameterExpression instances with which they should be replaced.- Levanta
CircuitError –
If parameter_map contains Parameters outside those in self. - If the replacement Parameters in parameter_map would result in a name conflict in the generated expression.
- Tipo de retorno
- Retorno
A new expression with the specified parameters replaced.