35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
---
|
||
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
|
||
---
|
||
|
||
# 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.23/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>
|
||
|