qiskit-documentation/docs/api/qiskit/0.31/qiskit.pulse.builder.set_fr...

34 lines
973 B
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: set_frequency (v0.31)
description: API reference for qiskit.pulse.builder.set_frequency in qiskit v0.31
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.pulse.builder.set_frequency
---
<span id="qiskit-pulse-builder-set-frequency" />
# qiskit.pulse.builder.set\_frequency
<Function id="qiskit.pulse.builder.set_frequency" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/pulse/builder.py" signature="set_frequency(frequency, channel, name=None)">
Set the `frequency` of a pulse `channel`.
Examples:
```python
from qiskit import pulse
d0 = pulse.DriveChannel(0)
with pulse.build() as pulse_prog:
pulse.set_frequency(1e9, d0)
```
**Parameters**
* **frequency** (`float`) Frequency in Hz to set channel to.
* **channel** (`PulseChannel`) Channel to set frequency of.
* **name** (`Optional`\[`str`]) Name of the instruction.
</Function>