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

Public Member Functions

def perform_gate_apply_to_testing (self, gate_obj)
 
def perform_gate_matrix_testing (self, gate_obj)
 
def test_gates (self)
 
def test_Operation_Block_add_block (self)
 
def test_Operation_Block_add_operations (self)
 
def test_Operation_Block_creation (self)
 
def test_SYC_creation (self)
 

Detailed Description

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

Definition at line 48 of file test_gates.py.

Member Function Documentation

◆ perform_gate_apply_to_testing()

def tests.gates.test_gates.Test_operations.perform_gate_apply_to_testing (   self,
  gate_obj 
)
This method is called to test the individual gates 
Test by comparing the effect of a gate on an input state 
by squander gate to Qiskit implementation

Definition at line 280 of file test_gates.py.

Here is the caller graph for this function:

◆ perform_gate_matrix_testing()

def tests.gates.test_gates.Test_operations.perform_gate_matrix_testing (   self,
  gate_obj 
)
This method is called to test the individual gates 
Test by comparing the gate matrix of squander gate to Qiskit implementation

Definition at line 177 of file test_gates.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_gates()

def tests.gates.test_gates.Test_operations.test_gates (   self)
This method is called by pytest. 
Test by comparing all of the squander gates to Qiskit implementation

Definition at line 412 of file test_gates.py.

Here is the call graph for this function:

◆ test_Operation_Block_add_block()

def tests.gates.test_gates.Test_operations.test_Operation_Block_add_block (   self)
This method is called by pytest. 
Test to add operations to a block of gates

Definition at line 132 of file test_gates.py.

◆ test_Operation_Block_add_operations()

def tests.gates.test_gates.Test_operations.test_Operation_Block_add_operations (   self)
This method is called by pytest. 
Test to add operations to a block of gates

Definition at line 94 of file test_gates.py.

◆ test_Operation_Block_creation()

def tests.gates.test_gates.Test_operations.test_Operation_Block_creation (   self)
This method is called by pytest. 
Test to create an instance of Operation_Block class.

Definition at line 76 of file test_gates.py.

◆ test_SYC_creation()

def tests.gates.test_gates.Test_operations.test_SYC_creation (   self)
This method is called by pytest. 
Test to create an instance of CH gate.

Definition at line 53 of file test_gates.py.


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