qiskit.circuit.QuantumCircuit.bind_parameters¶
- QuantumCircuit.bind_parameters(values)[ソース]¶
Assign numeric parameters to values yielding a new circuit.
If the values are given as list or array they are bound to the circuit in the order of
parameters
(see the docstring for more details).To assign new Parameter objects or bind the values in-place, without yielding a new circuit, use the
assign_parameters()
method.- パラメータ
values (Union[Mapping[Parameter, float], Sequence[float]]) –
{parameter: value, ...}
or[value1, value2, ...]
- 例外
CircuitError – If values is a dict and contains parameters not present in the circuit.
TypeError – If values contains a ParameterExpression.
- 戻り値
Copy of self with assignment substitution.
- 戻り値の型