qiskit-documentation/docs/api/qiskit/0.29/qiskit.pulse.builder.u3.mdx

35 lines
987 B
Plaintext

---
title: u3 (v0.29)
description: API reference for qiskit.pulse.builder.u3 in qiskit v0.29
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.pulse.builder.u3
---
<span id="qiskit-pulse-builder-u3" />
# qiskit.pulse.builder.u3
<Function id="qiskit.pulse.builder.u3" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/pulse/builder.py" signature="u3(theta, phi, lam, qubit)">
Call a `U3Gate` 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.test.mock import FakeOpenPulse2Q
backend = FakeOpenPulse2Q()
with pulse.build(backend) as pulse_prog:
pulse.u3(math.pi, 0, math.pi, 1)
```
</Function>