Sequential Quantum Gate Decomposer  v1.9.3
Powerful decomposition of general unitarias into one- and two-qubit gates gates
Classes | Namespaces | Functions | Variables
qgd_N_Qubit_Decomposition_custom.py File Reference

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

Go to the source code of this file.

Classes

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

Namespaces

 squander.decomposition.qgd_N_Qubit_Decomposition_custom
 

Functions

def squander.decomposition.qgd_N_Qubit_Decomposition_custom.__init__ (self, Umtx, initial_guess="RANDOM", config={}, accelerator_num=0)
 Constructor of the class. More...
 
def squander.decomposition.qgd_N_Qubit_Decomposition_custom.get_Circuit (self)
 Call to retrieve the incorporated quantum circuit (Squander format) More...
 
def squander.decomposition.qgd_N_Qubit_Decomposition_custom.get_Cirq_Circuit (self)
 Export the unitary decomposition into Qiskit format. More...
 
def squander.decomposition.qgd_N_Qubit_Decomposition_custom.get_Optimized_Parameters (self)
 Call to get the optimized parameters set in numpy array. More...
 
def squander.decomposition.qgd_N_Qubit_Decomposition_custom.get_Qiskit_Circuit (self)
 Export the unitary decomposition into Qiskit format. More...
 
def squander.decomposition.qgd_N_Qubit_Decomposition_custom.import_Qiskit_Circuit (self, qc_in)
 Call to import initial quantum circuit in QISKIT format to be further comporessed. More...
 
def squander.decomposition.qgd_N_Qubit_Decomposition_custom.List_Gates (self)
 Call to print the gates decomposing the initial unitary. More...
 
def squander.decomposition.qgd_N_Qubit_Decomposition_custom.Optimization_Problem (self, parameters=None)
 Call to evaluate the cost function. More...
 
def squander.decomposition.qgd_N_Qubit_Decomposition_custom.Prepare_Gates_To_Export (self)
 Call to prepare the circuit to be exported into Qiskit format. More...
 
def squander.decomposition.qgd_N_Qubit_Decomposition_custom.Reorder_Qubits (self, qbit_list)
 Call to reorder the qubits in the matrix of the gate. More...
 
def squander.decomposition.qgd_N_Qubit_Decomposition_custom.set_Cost_Function_Variant (self, costfnc=0)
 Call to set the optimizer used in the gate synthesis process. More...
 
def squander.decomposition.qgd_N_Qubit_Decomposition_custom.set_Gate_Structure (self, Gate_structure)
 Call to set custom gate structure to used in the decomposition. More...
 
def squander.decomposition.qgd_N_Qubit_Decomposition_custom.set_Optimizer (self, optimizer="BFGS")
 Call to set the optimizer used in the gate synthesis process. More...
 
def squander.decomposition.qgd_N_Qubit_Decomposition_custom.Start_Decomposition (self)
 Wrapper function to call the start_decomposition method of C++ class N_Qubit_Decomposition. More...
 

Variables

 squander.decomposition.qgd_N_Qubit_Decomposition_custom.qbit_num
 the number of qubits More...
 

Detailed Description

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

A QGD Python interface class for the decomposition of N-qubit unitaries into a set of two-qubit and one-qubit gates.

Definition in file qgd_N_Qubit_Decomposition_custom.py.