37 lines
997 B
Plaintext
37 lines
997 B
Plaintext
---
|
|
title: acquire_channel (v0.31)
|
|
description: API reference for qiskit.pulse.builder.acquire_channel in qiskit v0.31
|
|
in_page_toc_min_heading_level: 1
|
|
python_api_type: function
|
|
python_api_name: qiskit.pulse.builder.acquire_channel
|
|
---
|
|
|
|
<span id="qiskit-pulse-builder-acquire-channel" />
|
|
|
|
# qiskit.pulse.builder.acquire\_channel
|
|
|
|
<Function id="qiskit.pulse.builder.acquire_channel" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/pulse/builder.py" signature="acquire_channel(qubit)">
|
|
Return `AcquireChannel` for `qubit` on the active builder backend.
|
|
|
|
Examples:
|
|
|
|
```python
|
|
from qiskit import pulse
|
|
from qiskit.test.mock import FakeOpenPulse2Q
|
|
|
|
backend = FakeOpenPulse2Q()
|
|
|
|
with pulse.build(backend):
|
|
assert pulse.acquire_channel(0) == pulse.AcquireChannel(0)
|
|
```
|
|
|
|
<Admonition title="Note" type="note">
|
|
Requires the active builder context to have a backend set.
|
|
</Admonition>
|
|
|
|
**Return type**
|
|
|
|
`AcquireChannel`
|
|
</Function>
|
|
|