Skip to main content
IBM Quantum Platform
このページは古いバージョンのQiskit SDKです。 最新バージョンへ

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)

GitHub

Returns first index of value.

resize

resize(length)

GitHub

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.

このページは役に立ちましたか?
バグや誤字の報告、またはコンテンツの要求はGitHubで行ってください。