qiskit-documentation/docs/api/qiskit/0.26/qiskit.pulse.builder.measur...

37 lines
1.1 KiB
Plaintext

---
title: measure_channel (v0.26)
description: API reference for qiskit.pulse.builder.measure_channel in qiskit v0.26
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.pulse.builder.measure_channel
---
<span id="qiskit-pulse-builder-measure-channel" />
# qiskit.pulse.builder.measure\_channel
<Function id="qiskit.pulse.builder.measure_channel" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.17/qiskit/pulse/builder.py" signature="measure_channel(qubit)">
Return `MeasureChannel` 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.measure_channel(0) == pulse.MeasureChannel(0)
```
<Admonition title="Note" type="note">
Requires the active builder context to have a backend set.
</Admonition>
**Return type**
[`MeasureChannel`](qiskit.pulse.channels#measurechannel "qiskit.pulse.channels.MeasureChannel")
</Function>