|
Sequential Quantum Gate Decomposer
v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
|
Python interface for the Gates_block class (quantum circuit wrapper) More...
#include <Python.h>#include "structmember.h"#include "Gates_block.h"#include "CZ.h"#include "CH.h"#include "CNOT.h"#include "U1.h"#include "U2.h"#include "U3.h"#include "RX.h"#include "R.h"#include "RY.h"#include "CRY.h"#include "CRX.h"#include "CRZ.h"#include "CP.h"#include "CCX.h"#include "SWAP.h"#include "CSWAP.h"#include "CROT.h"#include "CR.h"#include "RZ.h"#include "H.h"#include "X.h"#include "Y.h"#include "Z.h"#include "SX.h"#include "SXdg.h"#include "SYC.h"#include "Adaptive.h"#include "RXX.h"#include "RYY.h"#include "RZZ.h"#include "numpy_interface.h"
Go to the source code of this file.
Classes | |
| struct | qgd_Circuit_Wrapper |
| Type definition for qgd_Circuit_Wrapper. More... | |
| struct | qgd_Gate |
| Type definition of the qgd_Gate Python class of the qgd_Gate module. More... | |
Macros | |
| #define | get_gate_template_one_qubit(GATE_NAME) |
| #define | get_gate_template_two_qubit(GATE_NAME) |
| #define | PY_SSIZE_T_CLEAN |
| #define | qgd_Circuit_Wrapper_add_one_qubit_gate(gate_name, GATE_NAME) |
| #define | qgd_Circuit_Wrapper_add_qbit_only_gate(gate_name, GATE_NAME) |
| #define | qgd_Circuit_Wrapper_add_two_qubit_gate(gate_name, GATE_NAME) |
Functions | |
| static void | circuit_matrix_float_owner_capsule_destruct (PyObject *cap) |
| Capsule destructor: calls delete on a heap-allocated Matrix_float, which correctly decrements the reference counter and then calls scalable_aligned_free. More... | |
| static void | circuit_matrix_owner_capsule_destruct (PyObject *cap) |
| Capsule destructor: calls delete on a heap-allocated Matrix, which correctly decrements the reference counter and then calls scalable_aligned_free. More... | |
| Gates_block * | create_Circuit (int qbit_num) |
| Creates an instance of class Gates_block (Circuit) and returns a pointer to the class instance. More... | |
| static PyObject * | get_gate (Gates_block *circuit, int &idx) |
| Call to get the metadata organized into Python dictionary of the idx-th gate. More... | |
| if (!PyArg_ParseTupleAndKeywords(args, kwds, "|O", kwlist, &target_qbits_py)) return Py_BuildValue("i" | |
| if (target_qbits_py !=NULL &&PyList_Check(target_qbits_py)) | |
| return | Py_BuildValue ("i", 0) |
| PyMODINIT_FUNC | PyInit_qgd_Circuit_Wrapper (void) |
| Method called when the Python module is initialized. More... | |
| CR static adaptive PyObject * | qgd_Circuit_Wrapper_add_CCX (qgd_Circuit_Wrapper *self, PyObject *args, PyObject *kwds) |
| Wrapper function to add a CCX gate to the front of the gate structure. More... | |
| static PyObject * | qgd_Circuit_Wrapper_add_Circuit (qgd_Circuit_Wrapper *self, PyObject *args) |
| Wrapper function to add a block of operations to the front of the gate structure. More... | |
| static PyObject * | qgd_Circuit_Wrapper_add_CSWAP (qgd_Circuit_Wrapper *self, PyObject *args, PyObject *kwds) |
| Wrapper function to add a CSWAP gate to the front of the gate structure. More... | |
| static PyObject * | qgd_Circuit_Wrapper_add_GENERAL (qgd_Circuit_Wrapper *self, PyObject *args, PyObject *kwds) |
| Wrapper function to add a GENERAL_OPERATION gate from an explicit matrix. More... | |
| qgd_Circuit_Wrapper_add_one_qubit_gate (u1, U1) qgd_Circuit_Wrapper_add_one_qubit_gate(u3 | |
| U3 | qgd_Circuit_Wrapper_add_one_qubit_gate (u2, U2) qgd_Circuit_Wrapper_add_one_qubit_gate(rx |
| U3 RX | qgd_Circuit_Wrapper_add_one_qubit_gate (ry, RY) qgd_Circuit_Wrapper_add_one_qubit_gate(rz |
| U3 RX RZ | qgd_Circuit_Wrapper_add_one_qubit_gate (r, R) qgd_Circuit_Wrapper_add_one_qubit_gate(h |
| U3 RX RZ H | qgd_Circuit_Wrapper_add_one_qubit_gate (x, X) qgd_Circuit_Wrapper_add_one_qubit_gate(y |
| U3 RX RZ H Y | qgd_Circuit_Wrapper_add_one_qubit_gate (z, Z) qgd_Circuit_Wrapper_add_one_qubit_gate(sx |
| U3 RX RZ H Y SX | qgd_Circuit_Wrapper_add_one_qubit_gate (sxdg, SXdg) qgd_Circuit_Wrapper_add_one_qubit_gate(s |
| U3 RX RZ H Y SX S | qgd_Circuit_Wrapper_add_one_qubit_gate (sdg, Sdg) qgd_Circuit_Wrapper_add_one_qubit_gate(t |
| U3 RX RZ H Y SX S T | qgd_Circuit_Wrapper_add_one_qubit_gate (tdg, Tdg) qgd_Circuit_Wrapper_add_two_qubit_gate(cnot |
| static PyObject * | qgd_Circuit_Wrapper_add_RXX (qgd_Circuit_Wrapper *self, PyObject *args, PyObject *kwds) |
| static PyObject * | qgd_Circuit_Wrapper_add_RYY (qgd_Circuit_Wrapper *self, PyObject *args, PyObject *kwds) |
| static PyObject * | qgd_Circuit_Wrapper_add_RZZ (qgd_Circuit_Wrapper *self, PyObject *args, PyObject *kwds) |
| U3 RX RZ H Y SX S T CNOT | qgd_Circuit_Wrapper_add_two_qubit_gate (cz, CZ) qgd_Circuit_Wrapper_add_two_qubit_gate(ch |
| U3 RX RZ H Y SX S T CNOT CH | qgd_Circuit_Wrapper_add_two_qubit_gate (cu, CU) qgd_Circuit_Wrapper_add_two_qubit_gate(syc |
| U3 RX RZ H Y SX S T CNOT CH SYC | qgd_Circuit_Wrapper_add_two_qubit_gate (cry, CRY) qgd_Circuit_Wrapper_add_two_qubit_gate(crz |
| U3 RX RZ H Y SX S T CNOT CH SYC CRZ | qgd_Circuit_Wrapper_add_two_qubit_gate (crx, CRX) static PyObject *qgd_Circuit_Wrapper_add_SWAP(qgd_Circuit_Wrapper *self |
| qgd_Circuit_Wrapper_add_two_qubit_gate (cp, CP) qgd_Circuit_Wrapper_add_two_qubit_gate(cr | |
| CR | qgd_Circuit_Wrapper_add_two_qubit_gate (crot, CROT) qgd_Circuit_Wrapper_add_two_qubit_gate(adaptive |
| static PyObject * | qgd_Circuit_Wrapper_apply_derivate_to (qgd_Circuit_Wrapper *self, PyObject *args, PyObject *kwds) |
| Evaluate the derivative of the circuit on an input matrix with respect to all free parameters (float64 only). More... | |
| static PyObject * | qgd_Circuit_Wrapper_apply_from_right (qgd_Circuit_Wrapper *self, PyObject *args, PyObject *kwds) |
| Apply the gate circuit from the right on the input matrix with float32/float64 dispatch. More... | |
| static PyObject * | qgd_Circuit_Wrapper_apply_to (qgd_Circuit_Wrapper *self, PyObject *args, PyObject *kwds) |
| Apply the gate circuit operation on the input matrix. More... | |
| static PyObject * | qgd_Circuit_Wrapper_apply_to_combined (qgd_Circuit_Wrapper *self, PyObject *args, PyObject *kwds) |
| Evaluate forward circuit action and all derivatives in one call. More... | |
| static PyObject * | qgd_Circuit_Wrapper_apply_to_list (qgd_Circuit_Wrapper *self, PyObject *args, PyObject *kwds) |
| Apply the circuit to a list of input matrices with float32/float64 dispatch. More... | |
| static void | qgd_Circuit_Wrapper_dealloc (qgd_Circuit_Wrapper *self) |
| Method called when a python instance of the class qgd_Circuit_Wrapper is destroyed. More... | |
| static PyObject * | qgd_Circuit_Wrapper_Extract_Parameters (qgd_Circuit_Wrapper *self, PyObject *args) |
| Call to extract the parameters corresponding to the gate from a parameter array associated with the circuit in which the gate is embedded. More... | |
| static PyObject * | qgd_Circuit_Wrapper_get_children (qgd_Circuit_Wrapper *self, PyObject *args) |
| Wrapper function to get the indices of children gates. More... | |
| static PyObject * | qgd_Circuit_Wrapper_get_Flat_Circuit (qgd_Circuit_Wrapper *self) |
| Method to generate a flat circuit. More... | |
| static PyObject * | qgd_Circuit_Wrapper_get_gate (qgd_Circuit_Wrapper *self, PyObject *args) |
| Wrapper function to get a gate from the circuit. More... | |
| static PyObject * | qgd_Circuit_Wrapper_get_Gate_Nums (qgd_Circuit_Wrapper *self) |
| Call to get the counts of individual gates in the circuit. More... | |
| static PyObject * | qgd_Circuit_Wrapper_get_gates (qgd_Circuit_Wrapper *self) |
| Call to get the incorporated gates in a Python list. More... | |
| static PyObject * | qgd_Circuit_Wrapper_get_Matrix (qgd_Circuit_Wrapper *self, PyObject *args, PyObject *kwds) |
| Extract the optimized parameters and return the matrix representation of the gate circuit. More... | |
| static PyObject * | qgd_Circuit_Wrapper_get_Parameter_Num (qgd_Circuit_Wrapper *self) |
| Get the number of free parameters in the gate structure used for the decomposition. More... | |
| static PyObject * | qgd_Circuit_Wrapper_get_Parameter_Start_Index (qgd_Circuit_Wrapper *self) |
| Call to get the starting index of the parameters in the parameter array corresponding to the circuit in which the current gate is incorporated. More... | |
| static PyObject * | qgd_Circuit_Wrapper_get_parents (qgd_Circuit_Wrapper *self, PyObject *args) |
| Wrapper function to get the indices of parent gates. More... | |
| static PyObject * | qgd_Circuit_Wrapper_get_Qbit_Num (qgd_Circuit_Wrapper *self) |
| Call to retrieve the number of qubits in the circuit. More... | |
| static PyObject * | qgd_Circuit_Wrapper_get_Qbits (qgd_Circuit_Wrapper *self) |
| Call to retrieve the list of qubits involved in the circuit. More... | |
| static PyObject * | qgd_Circuit_Wrapper_get_Second_Renyi_Entropy (qgd_Circuit_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_Circuit_Wrapper_getstate (qgd_Circuit_Wrapper *self) |
| Method to extract the stored quantum circuit in a human-readable data serialized and pickle-able format. More... | |
| static int | qgd_Circuit_Wrapper_init (qgd_Circuit_Wrapper *self, PyObject *args, PyObject *kwds) |
| Method called when a python instance of the class qgd_Circuit_Wrapper is initialized. More... | |
| static PyObject * | qgd_Circuit_Wrapper_new (PyTypeObject *type, PyObject *args, PyObject *kwds) |
| Method called when a python instance of the class qgd_Circuit_Wrapper is allocated. More... | |
| static PyObject * | qgd_Circuit_Wrapper_Remap_Qbits (qgd_Circuit_Wrapper *self, PyObject *args) |
| Call to remap the qubits in the circuit. More... | |
| static PyObject * | qgd_Circuit_Wrapper_set_Min_Fusion (qgd_Circuit_Wrapper *self, PyObject *args) |
| static PyObject * | qgd_Circuit_Wrapper_set_Qbit_Num (qgd_Circuit_Wrapper *self, PyObject *args) |
| Call to set the number of qubits in the circuit. More... | |
| static PyObject * | qgd_Circuit_Wrapper_setstate (qgd_Circuit_Wrapper *self, PyObject *args) |
| Call to set the state of a quantum circuit from a human-readable data serialized and pickle-able format. More... | |
| void | release_Circuit (Gates_block *instance) |
| Call to deallocate an instance of Gates_block class. More... | |
Variables | |
| U3 RX RZ H Y SX S T CNOT CH SYC CRZ PyObject * | args |
| U3 RX RZ H Y SX S T CNOT CH SYC CRZ PyObject PyObject * | kwds |
| static PyMemberDef | qgd_Circuit_Wrapper_Members [] |
| Structure containing metadata about the members of class qgd_Circuit_Wrapper. More... | |
| static PyMethodDef | qgd_Circuit_Wrapper_Methods [] |
| static PyModuleDef | qgd_Circuit_Wrapper_Module |
| Structure containing metadata about the module. More... | |
| static PyTypeObject | qgd_Circuit_Wrapper_Type |
| A structure describing the type of the class Circuit. More... | |
| PyObject * | target_qbits_py = NULL |
Python interface for the Gates_block class (quantum circuit wrapper)
Definition in file qgd_Circuit_Wrapper.cpp.
| #define get_gate_template_one_qubit | ( | GATE_NAME | ) |
Definition at line 2087 of file qgd_Circuit_Wrapper.cpp.
| #define get_gate_template_two_qubit | ( | GATE_NAME | ) |
Definition at line 2074 of file qgd_Circuit_Wrapper.cpp.
| #define PY_SSIZE_T_CLEAN |
Definition at line 26 of file qgd_Circuit_Wrapper.cpp.
| #define qgd_Circuit_Wrapper_add_one_qubit_gate | ( | gate_name, | |
| GATE_NAME | |||
| ) |
Definition at line 182 of file qgd_Circuit_Wrapper.cpp.
| #define qgd_Circuit_Wrapper_add_qbit_only_gate | ( | gate_name, | |
| GATE_NAME | |||
| ) |
Definition at line 201 of file qgd_Circuit_Wrapper.cpp.
| #define qgd_Circuit_Wrapper_add_two_qubit_gate | ( | gate_name, | |
| GATE_NAME | |||
| ) |
Definition at line 211 of file qgd_Circuit_Wrapper.cpp.
|
static |
Capsule destructor: calls delete on a heap-allocated Matrix_float, which correctly decrements the reference counter and then calls scalable_aligned_free.
Definition at line 1147 of file qgd_Circuit_Wrapper.cpp.

|
static |
Capsule destructor: calls delete on a heap-allocated Matrix, which correctly decrements the reference counter and then calls scalable_aligned_free.
Definition at line 1137 of file qgd_Circuit_Wrapper.cpp.

| Gates_block* create_Circuit | ( | int | qbit_num | ) |
Creates an instance of class Gates_block (Circuit) and returns a pointer to the class instance.
| qbit_num | Number of qubits spanning the circuit |
Definition at line 93 of file qgd_Circuit_Wrapper.cpp.

|
static |
Call to get the metadata organized into Python dictionary of the idx-th gate.
| circuit | A pointer pointing to an instance of the class Gates_block |
| idx | Labels the idx-th gate (passed by reference, may be modified) |
Definition at line 2108 of file qgd_Circuit_Wrapper.cpp.


| if | ( | ! | PyArg_ParseTupleAndKeywordsargs, kwds, "|O", kwlist, &target_qbits_py | ) |
| if | ( | target_qbits_py ! | = NULL && PyList_Check(target_qbits_py) | ) |
| return Py_BuildValue | ( | "i" | , |
| 0 | |||
| ) |
| PyMODINIT_FUNC PyInit_qgd_Circuit_Wrapper | ( | void | ) |
Method called when the Python module is initialized.
Definition at line 3384 of file qgd_Circuit_Wrapper.cpp.
|
static |
Wrapper function to add a CCX gate to the front of the gate structure.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper. |
| args | A tuple of the input arguments: target_qbit (int), control_qbits (list of ints) |
| kwds | A tuple of keywords |
Definition at line 386 of file qgd_Circuit_Wrapper.cpp.

|
static |
Wrapper function to add a block of operations to the front of the gate structure.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper. |
| args | A tuple of the input arguments: Py_qgd_Circuit_Wrapper (PyObject) Py_qgd_Circuit_Wrapper: an instance of qgd_Circuit_Wrapper containing the custom gate structure |
Definition at line 481 of file qgd_Circuit_Wrapper.cpp.

|
static |
Wrapper function to add a CSWAP gate to the front of the gate structure.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper. |
| args | A tuple of the input arguments: target_qbits (list of ints), control_qbits (list of ints) |
| kwds | A tuple of keywords |
Definition at line 428 of file qgd_Circuit_Wrapper.cpp.

|
static |
Wrapper function to add a GENERAL_OPERATION gate from an explicit matrix.
| self | A pointer to an instance of qgd_Circuit_Wrapper. |
| args | Positional args: operation_mtx (numpy.ndarray), optional target_qbits, optional control_qbits. |
| kwds | Keywords: is_f32 (bool, optional, default False). |
Definition at line 511 of file qgd_Circuit_Wrapper.cpp.

| qgd_Circuit_Wrapper_add_one_qubit_gate | ( | u1 | , |
| U1 | |||
| ) |
|
static |
|
static |
|
static |
| qgd_Circuit_Wrapper_add_two_qubit_gate | ( | cp | , |
| CP | |||
| ) |
|
static |
Evaluate the derivative of the circuit on an input matrix with respect to all free parameters (float64 only).
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
| args | A tuple of the input arguments: parameters_arr (numpy array), unitary_arg (numpy array), parallel (int, optional) |
| kwds | Optional keyword arguments |
Definition at line 1358 of file qgd_Circuit_Wrapper.cpp.

|
static |
Apply the gate circuit from the right on the input matrix with float32/float64 dispatch.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
| args | A tuple of the input arguments: parameters_arr (numpy array), unitary_arg (numpy array), parallel (int, optional) |
| kwds | Keywords: is_f32 (bool, optional, default False) |
Definition at line 1010 of file qgd_Circuit_Wrapper.cpp.

|
static |
Apply the gate circuit operation on the input matrix.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
| args | A tuple of the input arguments: parameters_arr (numpy array), unitary_arg (numpy array), parallel (int, optional) |
| kwds | A tuple of keywords |
Definition at line 861 of file qgd_Circuit_Wrapper.cpp.

|
static |
Evaluate forward circuit action and all derivatives in one call.
Return format: list where item[0] is apply_to output and item[1:] are derivatives.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
| args | A tuple of the input arguments: parameters_arr (numpy array), unitary_arg (numpy array), parallel (int, optional) |
| kwds | Optional keyword arguments |
Definition at line 1541 of file qgd_Circuit_Wrapper.cpp.

|
static |
Apply the circuit to a list of input matrices with float32/float64 dispatch.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
| args | A tuple of the input arguments: inputs (list of numpy arrays), parameters_arr (numpy array), parallel (int, optional) |
| kwds | Keywords: is_f32 (bool, optional, default False) |
Definition at line 1161 of file qgd_Circuit_Wrapper.cpp.

|
static |
Method called when a python instance of the class qgd_Circuit_Wrapper is destroyed.
| self | A pointer pointing to an instance of class qgd_Circuit_Wrapper. |
Definition at line 119 of file qgd_Circuit_Wrapper.cpp.

|
static |
Call to extract the parameters corresponding to the gate from a parameter array associated with the circuit in which the gate is embedded.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
| args | A tuple of the input arguments: parameters_arr (numpy array, optional) |
Definition at line 2708 of file qgd_Circuit_Wrapper.cpp.

|
static |
Wrapper function to get the indices of children gates.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
| args | A tuple of the input arguments: idx (integer) - the index of the gate for which we are retrieving the children |
Definition at line 2641 of file qgd_Circuit_Wrapper.cpp.

|
static |
Method to generate a flat circuit.
A flat circuit does not contain subcircuits: there are no Gates_block instances (containing subcircuits) in the resulting circuit. If the original circuit contains subcircuits, the gates in the subcircuits are directly incorporated in the resulting flat circuit
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
Definition at line 2762 of file qgd_Circuit_Wrapper.cpp.

|
static |
Wrapper function to get a gate from the circuit.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
| args | A tuple of the input arguments: idx (integer) - the index of the gate to retrieve |
Definition at line 2453 of file qgd_Circuit_Wrapper.cpp.

|
static |
Call to get the counts of individual gates in the circuit.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
Definition at line 2474 of file qgd_Circuit_Wrapper.cpp.

|
static |
Call to get the incorporated gates in a Python list.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
Definition at line 2535 of file qgd_Circuit_Wrapper.cpp.

|
static |
Extract the optimized parameters and return the matrix representation of the gate circuit.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
| args | A tuple of the input arguments: start_index (integer, optional) - the index of the first inverse gate |
Definition at line 793 of file qgd_Circuit_Wrapper.cpp.

|
static |
Get the number of free parameters in the gate structure used for the decomposition.
Definition at line 844 of file qgd_Circuit_Wrapper.cpp.

|
static |
Call to get the starting index of the parameters in the parameter array corresponding to the circuit in which the current gate is incorporated.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
Definition at line 3088 of file qgd_Circuit_Wrapper.cpp.

|
static |
Wrapper function to get the indices of parent gates.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
| args | A tuple of the input arguments: idx (integer) - the index of the gate for which we are retrieving the parents |
Definition at line 2573 of file qgd_Circuit_Wrapper.cpp.

|
static |
Call to retrieve the number of qubits in the circuit.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
Definition at line 1821 of file qgd_Circuit_Wrapper.cpp.

|
static |
Call to retrieve the list of qubits involved in the circuit.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
Definition at line 1893 of file qgd_Circuit_Wrapper.cpp.

|
static |
Wrapper function to evaluate the second Rényi entropy of a quantum circuit at a specific parameter set.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
| args | A tuple of the input arguments: parameters_arr (numpy array, optional), input_state_arg (numpy array, optional), qubit_list_arg (list, optional) |
Definition at line 1723 of file qgd_Circuit_Wrapper.cpp.

|
static |
Method to extract the stored quantum circuit in a human-readable data serialized and pickle-able format.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
Definition at line 2815 of file qgd_Circuit_Wrapper.cpp.

|
static |
Method called when a python instance of the class qgd_Circuit_Wrapper is initialized.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper. |
| args | A tuple of the input arguments: qbit_num (integer) qbit_num: the number of qubits spanning the operations |
| kwds | A tuple of keywords |
Definition at line 168 of file qgd_Circuit_Wrapper.cpp.
|
static |
Method called when a python instance of the class qgd_Circuit_Wrapper is allocated.
| type | A pointer pointing to a structure describing the type of the class Circuit. |
Definition at line 133 of file qgd_Circuit_Wrapper.cpp.

|
static |
Call to remap the qubits in the circuit.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
| args | A tuple of the input arguments: qbit_map_arg (dictionary) |
Definition at line 1968 of file qgd_Circuit_Wrapper.cpp.

|
static |
|
static |
Call to set the number of qubits in the circuit.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
| args | A tuple of the input arguments: qbit_num (integer, optional) |
Definition at line 1854 of file qgd_Circuit_Wrapper.cpp.

|
static |
Call to set the state of a quantum circuit from a human-readable data serialized and pickle-able format.
| self | A pointer pointing to an instance of the class qgd_Circuit_Wrapper |
| args | A tuple of the input arguments: state (dictionary) - the serialized circuit state |
Definition at line 2927 of file qgd_Circuit_Wrapper.cpp.

| void release_Circuit | ( | Gates_block * | instance | ) |
Call to deallocate an instance of Gates_block class.
| ptr | A pointer pointing to an instance of Gates_block class |
Definition at line 102 of file qgd_Circuit_Wrapper.cpp.

Definition at line 280 of file qgd_Circuit_Wrapper.cpp.
Definition at line 281 of file qgd_Circuit_Wrapper.cpp.
|
static |
Structure containing metadata about the members of class qgd_Circuit_Wrapper.
Definition at line 177 of file qgd_Circuit_Wrapper.cpp.
|
static |
Definition at line 3097 of file qgd_Circuit_Wrapper.cpp.
|
static |
Structure containing metadata about the module.
Definition at line 3373 of file qgd_Circuit_Wrapper.cpp.
|
static |
A structure describing the type of the class Circuit.
Definition at line 3301 of file qgd_Circuit_Wrapper.cpp.
| PyObject* target_qbits_py = NULL |
Definition at line 283 of file qgd_Circuit_Wrapper.cpp.
1.8.13