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

Public Member Functions

def test_circuit_to_cnot_basis_removes_non_cnot_multi_qubit_gates (self, gate_name)
 
def test_extract_parameters_wraps_out_of_range (self, gate_name)
 
def test_gate_apply_derivate_wrapper_smoke (self, gate_name)
 
def test_gate_apply_from_right_float32_float64_parity (self, gate_name)
 
def test_gate_apply_rectangular_sweep_paths (self, gate_name)
 
def test_gate_apply_to_combined_wrapper_smoke (self, gate_name)
 
def test_gate_apply_to_float32_float64_parity (self, gate_name)
 
def test_gate_apply_to_list_float32_float64_parity (self, gate_name)
 
def test_gate_constructor_and_base_methods (self, gate_name)
 
def test_gate_get_matrix_float32_float64_parity (self, gate_name)
 
def test_gate_matrix_matches_qiskit (self, gate_name)
 
def test_operation_block_add_operations (self)
 
def test_operation_block_creation (self)
 
def test_qiskit_io_roundtrip_per_gate (self, gate_name)
 
def test_squander_invert_circuit (self, gate_name)
 

Detailed Description

Definition at line 219 of file test_gates.py.

Member Function Documentation

◆ test_circuit_to_cnot_basis_removes_non_cnot_multi_qubit_gates()

def tests.gates.test_gates.TestGates.test_circuit_to_cnot_basis_removes_non_cnot_multi_qubit_gates (   self,
  gate_name 
)

Definition at line 934 of file test_gates.py.

Here is the call graph for this function:

◆ test_extract_parameters_wraps_out_of_range()

def tests.gates.test_gates.TestGates.test_extract_parameters_wraps_out_of_range (   self,
  gate_name 
)
extract_parameters should normalise each parameter via fmod(m*p, m*2pi).
Values already inside [0, m*2pi) should be unchanged; values above should wrap.

Definition at line 902 of file test_gates.py.

Here is the call graph for this function:

◆ test_gate_apply_derivate_wrapper_smoke()

def tests.gates.test_gates.TestGates.test_gate_apply_derivate_wrapper_smoke (   self,
  gate_name 
)

Definition at line 632 of file test_gates.py.

◆ test_gate_apply_from_right_float32_float64_parity()

def tests.gates.test_gates.TestGates.test_gate_apply_from_right_float32_float64_parity (   self,
  gate_name 
)

Definition at line 382 of file test_gates.py.

◆ test_gate_apply_rectangular_sweep_paths()

def tests.gates.test_gates.TestGates.test_gate_apply_rectangular_sweep_paths (   self,
  gate_name 
)

Definition at line 489 of file test_gates.py.

◆ test_gate_apply_to_combined_wrapper_smoke()

def tests.gates.test_gates.TestGates.test_gate_apply_to_combined_wrapper_smoke (   self,
  gate_name 
)

Definition at line 694 of file test_gates.py.

◆ test_gate_apply_to_float32_float64_parity()

def tests.gates.test_gates.TestGates.test_gate_apply_to_float32_float64_parity (   self,
  gate_name 
)

Definition at line 282 of file test_gates.py.

◆ test_gate_apply_to_list_float32_float64_parity()

def tests.gates.test_gates.TestGates.test_gate_apply_to_list_float32_float64_parity (   self,
  gate_name 
)

Definition at line 433 of file test_gates.py.

◆ test_gate_constructor_and_base_methods()

def tests.gates.test_gates.TestGates.test_gate_constructor_and_base_methods (   self,
  gate_name 
)

Definition at line 234 of file test_gates.py.

Here is the call graph for this function:

◆ test_gate_get_matrix_float32_float64_parity()

def tests.gates.test_gates.TestGates.test_gate_get_matrix_float32_float64_parity (   self,
  gate_name 
)

Definition at line 336 of file test_gates.py.

◆ test_gate_matrix_matches_qiskit()

def tests.gates.test_gates.TestGates.test_gate_matrix_matches_qiskit (   self,
  gate_name 
)

Definition at line 758 of file test_gates.py.

Here is the call graph for this function:

◆ test_operation_block_add_operations()

def tests.gates.test_gates.TestGates.test_operation_block_add_operations (   self)

Definition at line 224 of file test_gates.py.

◆ test_operation_block_creation()

def tests.gates.test_gates.TestGates.test_operation_block_creation (   self)

Definition at line 220 of file test_gates.py.

◆ test_qiskit_io_roundtrip_per_gate()

def tests.gates.test_gates.TestGates.test_qiskit_io_roundtrip_per_gate (   self,
  gate_name 
)

Definition at line 773 of file test_gates.py.

◆ test_squander_invert_circuit()

def tests.gates.test_gates.TestGates.test_squander_invert_circuit (   self,
  gate_name 
)

Definition at line 852 of file test_gates.py.


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