qiskit.circuit.library.NLocal.assign_parameters¶
- NLocal.assign_parameters(parameters, inplace=False)[ソース]¶
Assign parameters to the n-local circuit.
This method also supports passing a list instead of a dictionary. If a list is passed, the list must have the same length as the number of unbound parameters in the circuit. The parameters are assigned in the order of the parameters in
ordered_parameters()
.- 戻り値
A copy of the NLocal circuit with the specified parameters.
- 例外
AttributeError – If the parameters are given as list and do not match the number of parameters.
- 戻り値の型
QuantumCircuit | None