qiskit-documentation/docs/api/qiskit/0.43/qiskit.pulse.builder.u1.mdx

35 lines
955 B
Plaintext

---
title: u1
description: API reference for qiskit.pulse.builder.u1
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.pulse.builder.u1
---
<span id="qiskit-pulse-builder-u1" />
# qiskit.pulse.builder.u1
<Function id="qiskit.pulse.builder.u1" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.24/qiskit/pulse/builder.py" signature="u1(theta, qubit)">
Call a `U1Gate` on the input physical qubit.
<Admonition title="Note" type="note">
Calling gates directly within the pulse builder namespace will be deprecated in the future in favor of tight integration with a circuit builder interface which is under development.
</Admonition>
Examples:
```python
import math
from qiskit import pulse
from qiskit.providers.fake_provider import FakeOpenPulse2Q
backend = FakeOpenPulse2Q()
with pulse.build(backend) as pulse_prog:
pulse.u1(math.pi, 1)
```
</Function>