qiskit-documentation/docs/api/qiskit/0.27/qiskit.pulse.builder.delay_...

37 lines
1.2 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

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: delay_qubits
description: API reference for qiskit.pulse.builder.delay_qubits
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.pulse.builder.delay_qubits
---
# qiskit.pulse.builder.delay\_qubits
<Function id="qiskit.pulse.builder.delay_qubits" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.17/qiskit/pulse/builder.py" signature="delay_qubits(duration, *qubits)">
Insert delays on all of the `channels.Channel`s that correspond to the input `qubits` at the same time.
Examples:
```python
from qiskit import pulse
from qiskit.test.mock import FakeOpenPulse3Q
backend = FakeOpenPulse3Q()
with pulse.build(backend) as pulse_prog:
# Delay for 100 cycles on qubits 0, 1 and 2.
regs = pulse.delay_qubits(100, 0, 1, 2)
```
<Admonition title="Note" type="note">
Requires the active builder context to have a backend set.
</Admonition>
**Parameters**
* **duration** (`int`) Duration to delay for.
* **qubits** (`Union`\[`int`, `Iterable`\[`int`]]) Physical qubits to delay on. Delays will be inserted based on the channels returned by `pulse.qubit_channels()`.
</Function>