qiskit-documentation/docs/api/qiskit/0.36/qiskit.circuit.ParameterVec...

47 lines
1.4 KiB
Plaintext

---
title: ParameterVector
description: API reference for qiskit.circuit.ParameterVector
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.circuit.ParameterVector
---
# ParameterVector
<Class id="qiskit.circuit.ParameterVector" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.20/qiskit/circuit/parametervector.py" signature="ParameterVector(name, length=0)" modifiers="class">
Bases: `object`
ParameterVector class to quickly generate lists of parameters.
## Methods
### index
<Function id="qiskit.circuit.ParameterVector.index" signature="ParameterVector.index(value)">
Returns first index of value.
</Function>
### resize
<Function id="qiskit.circuit.ParameterVector.resize" signature="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.
</Function>
## Attributes
### name
<Attribute id="qiskit.circuit.ParameterVector.name">
Returns the name of the ParameterVector.
</Attribute>
### params
<Attribute id="qiskit.circuit.ParameterVector.params">
Returns the list of parameters in the ParameterVector.
</Attribute>
</Class>