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 | Private Member Functions | Static Private Member Functions
tests.gates.test_circuit.TestRectangularApplyRoutes Class Reference

Public Member Functions

def test_apply_from_right_rectangular_subset_consistency_f32 (self)
 
def test_apply_from_right_rectangular_subset_consistency_f64 (self)
 
def test_apply_to_rectangular_subset_consistency_f32 (self)
 
def test_apply_to_rectangular_subset_consistency_f64 (self)
 

Private Member Functions

def _build_circuit_q4 (self)
 

Static Private Member Functions

def _max_subset_err_apply_from_right (circ, params, full_input, is_f32=False)
 
def _max_subset_err_apply_to (circ, params, full_input, is_f32=False)
 

Detailed Description

4-qubit rectangular matrix coverage for all apply* methods.

For apply_to routes, the matrix shape is 16xN (N=1..32).
For apply_from_right routes, the matrix shape is Nx16 (N=1..32), since
the right-multiply path requires the number of columns to be 16.

Definition at line 317 of file test_circuit.py.

Member Function Documentation

◆ _build_circuit_q4()

def tests.gates.test_circuit.TestRectangularApplyRoutes._build_circuit_q4 (   self)
private

Definition at line 325 of file test_circuit.py.

Here is the caller graph for this function:

◆ _max_subset_err_apply_from_right()

def tests.gates.test_circuit.TestRectangularApplyRoutes._max_subset_err_apply_from_right (   circ,
  params,
  full_input,
  is_f32 = False 
)
staticprivate

Definition at line 353 of file test_circuit.py.

Here is the caller graph for this function:

◆ _max_subset_err_apply_to()

def tests.gates.test_circuit.TestRectangularApplyRoutes._max_subset_err_apply_to (   circ,
  params,
  full_input,
  is_f32 = False 
)
staticprivate

Definition at line 334 of file test_circuit.py.

Here is the caller graph for this function:

◆ test_apply_from_right_rectangular_subset_consistency_f32()

def tests.gates.test_circuit.TestRectangularApplyRoutes.test_apply_from_right_rectangular_subset_consistency_f32 (   self)

Definition at line 413 of file test_circuit.py.

Here is the call graph for this function:

◆ test_apply_from_right_rectangular_subset_consistency_f64()

def tests.gates.test_circuit.TestRectangularApplyRoutes.test_apply_from_right_rectangular_subset_consistency_f64 (   self)

Definition at line 399 of file test_circuit.py.

Here is the call graph for this function:

◆ test_apply_to_rectangular_subset_consistency_f32()

def tests.gates.test_circuit.TestRectangularApplyRoutes.test_apply_to_rectangular_subset_consistency_f32 (   self)

Definition at line 385 of file test_circuit.py.

Here is the call graph for this function:

◆ test_apply_to_rectangular_subset_consistency_f64()

def tests.gates.test_circuit.TestRectangularApplyRoutes.test_apply_to_rectangular_subset_consistency_f64 (   self)

Definition at line 371 of file test_circuit.py.

Here is the call graph for this function:

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