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

33 lines
948 B
Plaintext

---
title: cx (v0.29)
description: API reference for qiskit.pulse.builder.cx in qiskit v0.29
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.pulse.builder.cx
---
<span id="qiskit-pulse-builder-cx" />
# qiskit.pulse.builder.cx
<Function id="qiskit.pulse.builder.cx" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/pulse/builder.py" signature="cx(control, target)">
Call a `CXGate` on the input physical qubits.
<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
from qiskit import pulse
from qiskit.test.mock import FakeOpenPulse2Q
backend = FakeOpenPulse2Q()
with pulse.build(backend) as pulse_prog:
pulse.cx(0, 1)
```
</Function>