French
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.library.NLocal.assign_parameters

NLocal.assign_parameters(parameters, inplace=False)[source]

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().

Renvoie

A copy of the NLocal circuit with the specified parameters.

Lève

AttributeError – If the parameters are given as list and do not match the number of parameters.

Type renvoyé

QuantumCircuit | None