45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
---
|
|
title: qubit_channels (v0.31)
|
|
description: API reference for qiskit.pulse.builder.qubit_channels in qiskit v0.31
|
|
in_page_toc_min_heading_level: 1
|
|
python_api_type: function
|
|
python_api_name: qiskit.pulse.builder.qubit_channels
|
|
---
|
|
|
|
<span id="qiskit-pulse-builder-qubit-channels" />
|
|
|
|
# qiskit.pulse.builder.qubit\_channels
|
|
|
|
<Function id="qiskit.pulse.builder.qubit_channels" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/pulse/builder.py" signature="qubit_channels(qubit)">
|
|
Returns the set of channels associated with a qubit.
|
|
|
|
Examples:
|
|
|
|
```python
|
|
from qiskit import pulse
|
|
from qiskit.test.mock import FakeOpenPulse2Q
|
|
|
|
backend = FakeOpenPulse2Q()
|
|
|
|
with pulse.build(backend):
|
|
print(pulse.qubit_channels(0))
|
|
```
|
|
|
|
```
|
|
{ControlChannel(1), AcquireChannel(0), ControlChannel(0), DriveChannel(0), MeasureChannel(0)}
|
|
```
|
|
|
|
<Admonition title="Note" type="note">
|
|
Requires the active builder context to have a backend set.
|
|
</Admonition>
|
|
|
|
<Admonition title="Note" type="note">
|
|
A channel may still be associated with another qubit in this list such as in the case where significant crosstalk exists.
|
|
</Admonition>
|
|
|
|
**Return type**
|
|
|
|
`Set`\[`Channel`]
|
|
</Function>
|
|
|