35 lines
971 B
Plaintext
35 lines
971 B
Plaintext
---
|
|
title: u2 (v0.31)
|
|
description: API reference for qiskit.pulse.builder.u2 in qiskit v0.31
|
|
in_page_toc_min_heading_level: 1
|
|
python_api_type: function
|
|
python_api_name: qiskit.pulse.builder.u2
|
|
---
|
|
|
|
<span id="qiskit-pulse-builder-u2" />
|
|
|
|
# qiskit.pulse.builder.u2
|
|
|
|
<Function id="qiskit.pulse.builder.u2" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/pulse/builder.py" signature="u2(phi, lam, qubit)">
|
|
Call a `U2Gate` 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.u2(0, math.pi, 1)
|
|
```
|
|
</Function>
|
|
|