qiskit.circuit.library.NLocal.assign_parameters¶
- NLocal.assign_parameters(parameters, inplace=False)[código fonte]¶
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()
.- Retorno
A copy of the NLocal circuit with the specified parameters.
- Levanta
AttributeError – If the parameters are given as list and do not match the number of parameters.
- Tipo de retorno
QuantumCircuit | None