Skip to main contentIBM Quantum Documentation
You are viewing the API reference for an old version of Qiskit SDK. Switch to latest version

ParameterVector

ParameterVector(name, length=0) GitHub(opens in a new tab)

Bases: object

ParameterVector class to quickly generate lists of parameters.


Methods

index

ParameterVector.index(value)

Returns first index of value.

resize

ParameterVector.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.


Attributes

name

Returns the name of the ParameterVector.

params

Returns the list of parameters in the ParameterVector.

Was this page helpful?