qiskit-documentation/docs/api/qiskit/0.43/qiskit.synthesis.synth_cnot...

37 lines
1.3 KiB
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: synth_cnotdihedral_two_qubits
description: API reference for qiskit.synthesis.synth_cnotdihedral_two_qubits
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.synthesis.synth_cnotdihedral_two_qubits
---
<span id="qiskit-synthesis-synth-cnotdihedral-two-qubits" />
# qiskit.synthesis.synth\_cnotdihedral\_two\_qubits
<Function id="qiskit.synthesis.synth_cnotdihedral_two_qubits" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.24/qiskit/synthesis/cnotdihedral/cnotdihedral_decompose_two_qubits.py" signature="synth_cnotdihedral_two_qubits(elem)">
Decompose a CNOTDihedral element on a single qubit and two qubits into a QuantumCircuit. This decomposition has an optimal number of CX gates.
**Parameters**
**elem** ([*CNOTDihedral*](qiskit.quantum_info.CNOTDihedral "qiskit.quantum_info.CNOTDihedral")) a CNOTDihedral element.
**Returns**
a circuit implementation of the CNOTDihedral element.
**Return type**
[QuantumCircuit](qiskit.circuit.QuantumCircuit "qiskit.circuit.QuantumCircuit")
**Raises**
**QiskitError** if the element in not 1-qubit or 2-qubit CNOTDihedral.
## Reference:
1. Shelly Garion and Andrew W. Cross, *On the structure of the CNOT-Dihedral group*, [arXiv:2006.12042 \[quant-ph\]](https://arxiv.org/abs/2006.12042)
</Function>