Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.synthesis.synth_cnotdihedral_general

synth_cnotdihedral_general(elem)[source]

Decompose a CNOTDihedral element into a QuantumCircuit.

Decompose a general CNOTDihedral elements. The number of CNOT gates is not necessarily optimal. For a decomposition of a 1-qubit or 2-qubit element, call synth_cnotdihedral_two_qubits.

প্যারামিটার

elem (CNOTDihedral) -- a CNOTDihedral element.

রিটার্নস

a circuit implementation of the CNOTDihedral element.

রিটার্ন টাইপ

QuantumCircuit

রেইজেস

QiskitError -- if the element could not be decomposed into a circuit.

Reference:
  1. Andrew W. Cross, Easwar Magesan, Lev S. Bishop, John A. Smolin and Jay M. Gambetta, Scalable randomised benchmarking of non-Clifford gates, npj Quantum Inf 2, 16012 (2016).