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_circuit.TestNestedCircuit Class Reference

Public Member Functions

def test_doubly_nested_matches_flat (self, qbit_num)
 
def test_nested_f32_matches_f64 (self, qbit_num)
 
def test_nested_matches_flat (self, qbit_num)
 

Detailed Description

Nested circuits (add_Circuit): sub-circuit applied inside outer circuit.

Definition at line 675 of file test_circuit.py.

Member Function Documentation

◆ test_doubly_nested_matches_flat()

def tests.gates.test_circuit.TestNestedCircuit.test_doubly_nested_matches_flat (   self,
  qbit_num 
)
Two levels of nesting produce the same result as a flat circuit.

Definition at line 737 of file test_circuit.py.

Here is the call graph for this function:

◆ test_nested_f32_matches_f64()

def tests.gates.test_circuit.TestNestedCircuit.test_nested_f32_matches_f64 (   self,
  qbit_num 
)
float32 apply on nested circuit matches float64 reference.

Definition at line 714 of file test_circuit.py.

Here is the call graph for this function:

◆ test_nested_matches_flat()

def tests.gates.test_circuit.TestNestedCircuit.test_nested_matches_flat (   self,
  qbit_num 
)
Outer circuit containing a sub-circuit matches flat equivalent.

Definition at line 679 of file test_circuit.py.

Here is the call graph for this function:

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