qiskit-documentation/docs/api/qiskit/0.26/qiskit.pulse.ControlChannel...

111 lines
4.6 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: ControlChannel
description: API reference for qiskit.pulse.ControlChannel
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.pulse.ControlChannel
---
# qiskit.pulse.ControlChannel
<Class id="qiskit.pulse.ControlChannel" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.17/qiskit/pulse/channels.py" signature="ControlChannel(index)" modifiers="class">
Control channels provide supplementary control over the qubit to the drive channel. These are often associated with multi-qubit gate operations. They may not map trivially to a particular qubit index.
Channel class.
**Parameters**
**index** (`int`) Index of channel.
### \_\_init\_\_
<Function id="qiskit.pulse.ControlChannel.__init__" signature="__init__(index)">
Channel class.
**Parameters**
**index** (`int`) Index of channel.
</Function>
## Methods
| | |
| -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| [`__init__`](#qiskit.pulse.ControlChannel.__init__ "qiskit.pulse.ControlChannel.__init__")(index) | Channel class. |
| [`assign`](#qiskit.pulse.ControlChannel.assign "qiskit.pulse.ControlChannel.assign")(parameter, value) | Return a new channel with the input Parameter assigned to value. |
| [`is_parameterized`](#qiskit.pulse.ControlChannel.is_parameterized "qiskit.pulse.ControlChannel.is_parameterized")() | Return True iff the channel is parameterized. |
## Attributes
| | |
| ------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------- |
| [`index`](#qiskit.pulse.ControlChannel.index "qiskit.pulse.ControlChannel.index") | Return the index of this channel. |
| [`name`](#qiskit.pulse.ControlChannel.name "qiskit.pulse.ControlChannel.name") | Return the shorthand alias for this channel, which is based on its type and index. |
| [`parameters`](#qiskit.pulse.ControlChannel.parameters "qiskit.pulse.ControlChannel.parameters") | Parameters which determine the channel index. |
| `prefix` | |
### assign
<Function id="qiskit.pulse.ControlChannel.assign" signature="assign(parameter, value)">
Return a new channel with the input Parameter assigned to value.
**Parameters**
* **parameter** (`Parameter`) A parameter in this expression whose value will be updated.
* **value** (`Union`\[`ParameterExpression`, `float`, `int`]) The new value to bind to.
**Return type**
[`Channel`](qiskit.pulse.channels#channel "qiskit.pulse.channels.Channel")
**Returns**
A new channel with updated parameters.
**Raises**
[**PulseError**](qiskit.pulse.PulseError "qiskit.pulse.PulseError") If the parameter is not present in the channel.
</Function>
### index
<Attribute id="qiskit.pulse.ControlChannel.index">
Return the index of this channel. The index is a label for a control signal line typically mapped trivially to a qubit index. For instance, `DriveChannel(0)` labels the signal line driving the qubit labeled with index 0.
**Return type**
`Union`\[`int`, `ParameterExpression`]
</Attribute>
### is\_parameterized
<Function id="qiskit.pulse.ControlChannel.is_parameterized" signature="is_parameterized()">
Return True iff the channel is parameterized.
**Return type**
`bool`
</Function>
### name
<Attribute id="qiskit.pulse.ControlChannel.name">
Return the shorthand alias for this channel, which is based on its type and index.
**Return type**
`str`
</Attribute>
### parameters
<Attribute id="qiskit.pulse.ControlChannel.parameters">
Parameters which determine the channel index.
**Return type**
`Set`
</Attribute>
</Class>