|
N_Qubit_Decomposition_Tree_Search * | create_N_Qubit_Decomposition_Tree_Search (Matrix &Umtx, int qbit_num, int level_limit, std::vector< matrix_base< int >> topology_in, std::map< std::string, Config_Element > &config, int accelerator_num) |
| Constructor of the class. More...
|
|
PyMODINIT_FUNC | PyInit_qgd_N_Qubit_Decomposition_Tree_Search_Wrapper (void) |
| Method called when the Python module is initialized. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_apply_Global_Phase_Factor (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self) |
| applies the global phase to the Unitary matrix More...
|
|
static void | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_dealloc (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self) |
| Method called when a python instance of the class qgd_N_Qubit_Decomposition_Tree_Search_Wrapper is destroyed. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_export_Unitary (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| export unitary to binary file More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_get_circuit (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self) |
| Wrapper function to retrieve the circuit (Squander format) incorporated in the instance. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_get_Decomposition_Error (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self) |
| Cll to get the error of the decomposition (i.e. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_get_gate_num (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self) |
| Wrapper function to get the number of decomposing gates. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_get_Global_Phase (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self) |
| returns the angle of the global phase (the radius us always sqrt(2)) More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_get_Matrix (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| Retrieve the unified unitary operation of the circuit. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_get_Num_of_Iters (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self) |
| Get the number of free parameters in the gate structure used for the decomposition. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_get_Optimized_Parameters (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self) |
| Extract the optimized parameters. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_get_Parameter_Num (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self) |
| Get the number of free parameters in the gate structure used for the decomposition. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_get_Project_Name (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self) |
| get project name More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_get_Qbit_Num (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self) |
| Call to retrieve the number of qubits in the circuit. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_get_Second_Renyi_Entropy (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| Wrapper function to evaluate the second Rényi entropy of a quantum circuit at a specific parameter set. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_get_Trace_Offset (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self) |
| Wrapper function to get the trace offset used in the cost function. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_get_Unitary (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self) |
| get Unitary More...
|
|
static int | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_init (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args, PyObject *kwds) |
| Method called when a python instance of the class qgd_N_Qubit_Decomposition_Tree_Search_Wrapper is initialized. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_List_Gates (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self) |
| Lists the gates decomposing the initial unitary. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_new (PyTypeObject *type, PyObject *args, PyObject *kwds) |
| Method called when a python instance of the class qgd_N_Qubit_Decomposition_Tree_Search_Wrapper is allocated. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_Optimization_Problem (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| Wrapper function to evaluate the cost function. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_Optimization_Problem_Batch (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| Wrapper function to evaluate the cost function an dthe gradient components. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_Optimization_Problem_Combined (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| Wrapper function to evaluate the cost function an dthe gradient components. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_Optimization_Problem_Combined_Unitary (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| Wrapper function to evaluate the unitary function and the unitary derivates. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_Optimization_Problem_Grad (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| Wrapper function to evaluate the cost function an dthe gradient components. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_Reorder_Qubits (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| Wrapper method to reorder the qubits in the decomposition class. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_set_Convergence_Threshold (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| Wrapper method to set the threshold of convergence in the optimization processes. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_set_Cost_Function_Variant (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args, PyObject *kwds) |
| Wrapper function to set a variant for the cost function. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_set_Debugfile (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| Set the debugfile name of the N_Qubit_Decomposition class. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_set_Global_Phase (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| sets the global phase to the new angle given More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_set_Iteration_Loops (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| Set the number of iteration loops during the subdecomposition of the qbit-th qubit. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_set_Max_Iterations (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| Set the number of maximum iterations. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_set_Max_Layer_Num (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| Set the maximal number of layers used in the subdecomposition of the qbit-th qubit. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_set_Optimization_Blocks (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| Wrapper method to to set the number of gate blocks to be optimized in one shot. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_set_Optimization_Tolerance (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| Wrapper method to set the optimization tolerance of the optimization process during the decomposition. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_set_Optimized_Parameters (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| Extract the optimized parameters. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_set_Optimizer (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args, PyObject *kwds) |
| Wrapper function to set custom gate structure for the decomposition. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_set_Project_Name (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| set project name More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_set_Trace_Offset (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args, PyObject *kwds) |
| Wrapper function to set the trace offset used in the cost function. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_set_Unitary (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_set_Verbose (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args) |
| Set the verbosity of the N_Qubit_Decomposition class. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_Start_Decomposition (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self, PyObject *args, PyObject *kwds) |
| Wrapper function to call the start_decomposition method of C++ class N_Qubit_Decomposition. More...
|
|
static PyObject * | qgd_N_Qubit_Decomposition_Tree_Search_Wrapper_Upload_Umtx_to_DFE (qgd_N_Qubit_Decomposition_Tree_Search_Wrapper *self) |
| Call to upload the unitary to the DFE. More...
|
|
void | release_N_Qubit_Decomposition_Tree_Search (N_Qubit_Decomposition_Tree_Search *instance) |
| Call to deallocate an instance of N_Qubit_Decomposition_Tree_Search class. More...
|
|