|
Sequential Quantum Gate Decomposer
v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
|
Header file for DFE support in unitary simulation. More...
#include <omp.h>#include "QGDTypes.h"#include "dot.h"#include <string>#include <stdio.h>#include <iostream>#include <cmath>#include <vector>#include <cstring>#include <sstream>#include <tbb/queuing_rw_mutex.h>

Go to the source code of this file.
Classes | |
| class | DFE_Lib_Read_Lock |
| struct | DFEgate_kernel_type |
| Fixed point data related to a gate operation. More... | |
Macros | |
| #define | DFE_LIB_10QUBITS "libqgdDFE_10qubits.so" |
| #define | DFE_LIB_9QUBITS "libqgdDFE.so" |
| #define | DFE_LIB_SIM "libqgdDFE_SIM.so" |
Functions | |
| int | calcqgdKernelDFE (size_t rows, size_t cols, DFEgate_kernel_type *gates, int gatesNum, int gateSetNum, int traceOffset, double *trace) |
| Call to execute the calculation on the reserved DFE engines. More... | |
| size_t | get_accelerator_avail_num () |
| Call to get the available number of accelerators. More... | |
| size_t | get_accelerator_free_num () |
| Call to get the number of free accelerators. More... | |
| int | get_chained_gates_num () |
| Call to retrieve the number of gates that should be chained up during the execution of the DFE library. More... | |
| int | get_initialize_id () |
| Call to get the identification number of the inititalization of the library. More... | |
| int | init_dfe_lib (const int accelerator_num, int qbit_num, int initialize_id_in) |
| Call to initialize the DFE library support and allocate the requested devices. More... | |
| void | init_dfe_lib_and_upload (const int accelerator_num, int qbit_num, int initialize_id_in, Matrix &input) |
| Initialize the DFE library if needed and upload the input matrix while holding the writer lock. More... | |
| void | unload_dfe_lib () |
| Call to unload the DFE libarary and release the allocated devices. More... | |
| void | uploadMatrix2DFE (Matrix &input) |
| Call to upload the input matrix to the DFE engine. More... | |
Header file for DFE support in unitary simulation.
Definition in file common_DFE.h.
| #define DFE_LIB_10QUBITS "libqgdDFE_10qubits.so" |
Definition at line 44 of file common_DFE.h.
| #define DFE_LIB_9QUBITS "libqgdDFE.so" |
Definition at line 43 of file common_DFE.h.
| #define DFE_LIB_SIM "libqgdDFE_SIM.so" |
Definition at line 45 of file common_DFE.h.
| int calcqgdKernelDFE | ( | size_t | rows, |
| size_t | cols, | ||
| DFEgate_kernel_type * | gates, | ||
| int | gatesNum, | ||
| int | gateSetNum, | ||
| int | traceOffset, | ||
| double * | trace | ||
| ) |
Call to execute the calculation on the reserved DFE engines.
| rows | The number of rows in the input matrix |
| cols | the number of columns in the input matrix |
| gates | The metadata describing the gates to be applied on the input |
| gatesNum | The number of the chained up gates. |
| gateSetNum | Integer descibing how many individual gate chains are encoded in the gates input. |
| traceOffset | In integer describing an offset in the trace calculation |
| trace | The trace of the transformed unitaries are returned through this pointer |
Definition at line 233 of file common_DFE.cpp.

| size_t get_accelerator_avail_num | ( | ) |
Call to get the available number of accelerators.
Definition at line 195 of file common_DFE.cpp.
| size_t get_accelerator_free_num | ( | ) |
Call to get the number of free accelerators.
Definition at line 206 of file common_DFE.cpp.
| int get_chained_gates_num | ( | ) |
Call to retrieve the number of gates that should be chained up during the execution of the DFE library.
Definition at line 246 of file common_DFE.cpp.

| int get_initialize_id | ( | ) |
Call to get the identification number of the inititalization of the library.
Definition at line 216 of file common_DFE.cpp.
Call to initialize the DFE library support and allocate the requested devices.
| accelerator_num | The number of requested devices |
| qbit_num | The number of the supported qubits |
| initialize_id_in | Identification number of the inititalization of the library |
Definition at line 129 of file common_DFE.cpp.
| void init_dfe_lib_and_upload | ( | const int | accelerator_num, |
| int | qbit_num, | ||
| int | initialize_id_in, | ||
| Matrix & | input | ||
| ) |
Initialize the DFE library if needed and upload the input matrix while holding the writer lock.
Definition at line 178 of file common_DFE.cpp.

| void unload_dfe_lib | ( | ) |
Call to unload the DFE libarary and release the allocated devices.
Definition at line 110 of file common_DFE.cpp.

| void uploadMatrix2DFE | ( | Matrix & | input | ) |
Call to upload the input matrix to the DFE engine.
| input | The input matrix |
Definition at line 76 of file common_DFE.cpp.

1.8.13