Quantum Gate Decomposer  v1.3
Powerful decomposition of almost any unitary into U3 and CNOT gates
Classes | Namespaces | Functions | Variables
N_Qubit_Decomposition.py File Reference

#!/usr/bin/env python3 -*- coding: utf-8 -*- More...

Go to the source code of this file.

Classes

class  qgd_python.N_Qubit_Decomposition.N_Qubit_Decomposition
 A QGD Python interface class for the decomposition of N-qubit unitaries into U3 and CNOT gates. More...
 

Namespaces

 qgd_python.N_Qubit_Decomposition
 

Functions

def qgd_python.N_Qubit_Decomposition.__del__ (self)
 Destructor of the class. More...
 
def qgd_python.N_Qubit_Decomposition.get_quantum_circuit (self)
 Export the unitary decomposition into Qiskit format. More...
 
def qgd_python.N_Qubit_Decomposition.list_operations (self, start_index=1)
 Lists the operations decomposing the initial unitary. More...
 
def qgd_python.N_Qubit_Decomposition.set_identical_blocks (self, identical_blocks)
 Set the number of identical successive blocks during the subdecomposition of the qbit-th qubit. More...
 
def qgd_python.N_Qubit_Decomposition.set_iteration_loops (self, iteration_loops)
 Set the number of iteration loops during the subdecomposition of the qbit-th qubit. More...
 
def qgd_python.N_Qubit_Decomposition.set_max_layer_num (self, max_layer_num)
 Set the maximal number of layers used in the subdecomposition of the qbit-th qubit. More...
 
def qgd_python.N_Qubit_Decomposition.set_optimalization_block (self, optimalization_block)
 Call to set the number of blocks to be optimized in one shot. More...
 
def qgd_python.N_Qubit_Decomposition.set_verbose (self, verbose)
 Set the verbosity of the N_Qubit_Decomposition class. More...
 
def qgd_python.N_Qubit_Decomposition.start_decomposition (self, finalize_decomposition=True)
 Start the disentanglig process of the least significant two qubit unitary. More...
 

Variables

 qgd_python.N_Qubit_Decomposition._qgd_library = ctypes.cdll.LoadLibrary(library_path)
 The loaded QGD library. More...
 
 qgd_python.N_Qubit_Decomposition.argtypes
 
string qgd_python.N_Qubit_Decomposition.library_path = '.libs/libqgd.so'
 path to the QGD library More...
 
 qgd_python.N_Qubit_Decomposition.restype
 

Detailed Description

#!/usr/bin/env python3 -*- coding: utf-8 -*-

A QGD Python interface class for the decomposition of N-qubit unitaries into U3 and CNOT gates.

Definition in file N_Qubit_Decomposition.py.