Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK. Go to the latest version

qiskit.circuit.ParameterVector

class ParameterVector(name, length=0)

GitHub

ParameterVector class to quickly generate lists of parameters.

__init__

__init__(name, length=0)

Initialize self. See help(type(self)) for accurate signature.


Methods

__init__(name[, length])Initialize self.
resize(length)Resize the parameter vector.

Attributes

nameReturns the name of the ParameterVector.
paramsReturns the list of parameters in the ParameterVector.

name

Returns the name of the ParameterVector.

params

Returns the list of parameters in the ParameterVector.

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 enlargened again. This is to ensure that the parameter instances do not change.

Was this page helpful?
Report a bug or request content on GitHub.