Skip to main content
IBM Quantum Platform
Esta página corresponde a una versión anterior de Qiskit SDK Ir a la última versión

ParameterVector

class qiskit.circuit.ParameterVector(name, length=0)

GitHub

Bases: object

ParameterVector class to quickly generate lists of parameters.


Attributes

name

Returns the name of the ParameterVector.

params

Returns the list of parameters in the ParameterVector.


Methods

index

index(value)

Returns first index of value.

resize

resize(length)

Resize the parameter vector.

If necessary, new elements are generated. If length is smaller than before, the previous elements are cached and not re-generated if the vector is enlarged again. This is to ensure that the parameter instances do not change.

¿Le ha resultado útil esta página?
Informe de un error, de una errata o solicite contenido en GitHub.