Sequential Quantum Gate Decomposer  v1.9.7
Powerful decomposition of general unitarias into one- and two-qubit gates gates
List of all members | Public Member Functions
tests.decomposition.test_QX2.Test_Decomposition Class Reference

Public Member Functions

def create_custom_gate_structure_QX2 (self, qbit_num)
 
def test_custom_gate_structure_QX2_couplings (self)
 
def test_N_Qubit_Decomposition_QX2 (self)
 

Detailed Description

This is a test class of the python iterface to the decompsition classes of the QGD package

Definition at line 34 of file test_QX2.py.

Member Function Documentation

◆ create_custom_gate_structure_QX2()

def tests.decomposition.test_QX2.Test_Decomposition.create_custom_gate_structure_QX2 (   self,
  qbit_num 
)
This method is called to create custom gate structure for the decomposition on IBM QX2

Definition at line 112 of file test_QX2.py.

Here is the caller graph for this function:

◆ test_custom_gate_structure_QX2_couplings()

def tests.decomposition.test_QX2.Test_Decomposition.test_custom_gate_structure_QX2_couplings (   self)
Validate every QX2 coupling independently of optimizer convergence.

Definition at line 98 of file test_QX2.py.

Here is the call graph for this function:

◆ test_N_Qubit_Decomposition_QX2()

def tests.decomposition.test_QX2.Test_Decomposition.test_N_Qubit_Decomposition_QX2 (   self)
Test a custom QX2 gate structure in a four-qubit decomposition.

Both the target and optimizer are seeded because convergence time for
this strong numerical test otherwise varies by thousands of optimizer
iterations.

Definition at line 37 of file test_QX2.py.

Here is the call graph for this function:

The documentation for this class was generated from the following file: