46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
---
|
||
title: control_channels (v0.29)
|
||
description: API reference for qiskit.pulse.builder.control_channels in qiskit v0.29
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit.pulse.builder.control_channels
|
||
---
|
||
|
||
<span id="qiskit-pulse-builder-control-channels" />
|
||
|
||
# qiskit.pulse.builder.control\_channels
|
||
|
||
<Function id="qiskit.pulse.builder.control_channels" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/pulse/builder.py" signature="control_channels(*qubits)">
|
||
Return `ControlChannel` for `qubit` on the active builder backend.
|
||
|
||
Return the secondary drive channel for the given qubit – typically utilized for controlling multi-qubit interactions.
|
||
|
||
Examples:
|
||
|
||
```python
|
||
from qiskit import pulse
|
||
from qiskit.test.mock import FakeOpenPulse2Q
|
||
|
||
backend = FakeOpenPulse2Q()
|
||
with pulse.build(backend):
|
||
assert pulse.control_channels(0, 1) == [pulse.ControlChannel(0)]
|
||
```
|
||
|
||
<Admonition title="Note" type="note">
|
||
Requires the active builder context to have a backend set.
|
||
</Admonition>
|
||
|
||
**Parameters**
|
||
|
||
**qubits** (`Iterable`\[`int`]) – Tuple or list of ordered qubits of the form (control\_qubit, target\_qubit).
|
||
|
||
**Return type**
|
||
|
||
`List`\[`ControlChannel`]
|
||
|
||
**Returns**
|
||
|
||
List of control channels associated with the supplied ordered list of qubits.
|
||
</Function>
|
||
|