German
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.library.NLocal.assign_parameters

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

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

Rückgabetyp

Optional[QuantumCircuit]

Rückgabe

A copy of the NLocal circuit with the specified parameters.

Verursacht

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