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 | Static Public Attributes
tests.gates.test_gates.TestGateScalarPaths Class Reference

Public Member Functions

def scalar_inputs (self)
 
def test_apply_from_right_scalar_matches_matrix_and_f32_parity (self, gate_name, scalar_inputs)
 
def test_apply_to_matrix_scalar_matches_matrix_and_f32_parity (self, gate_name, scalar_inputs)
 
def test_apply_to_state_scalar_matches_matrix_and_f32_parity (self, gate_name, scalar_inputs)
 
def test_get_matrix_scalar_f32_parity (self, gate_name)
 
def test_get_matrix_scalar_f64_unitary (self, gate_name)
 

Static Public Attributes

 scope
 

Detailed Description

Direct in-process scalar-path checks for gate methods.

The subprocess tests above are crash-isolation sweeps. These tests stay in-process
so dtype mistakes and scalar dispatch regressions are reported at the failing call.

Definition at line 956 of file test_gates.py.

Member Function Documentation

◆ scalar_inputs()

def tests.gates.test_gates.TestGateScalarPaths.scalar_inputs (   self)

Definition at line 964 of file test_gates.py.

◆ test_apply_from_right_scalar_matches_matrix_and_f32_parity()

def tests.gates.test_gates.TestGateScalarPaths.test_apply_from_right_scalar_matches_matrix_and_f32_parity (   self,
  gate_name,
  scalar_inputs 
)

Definition at line 1024 of file test_gates.py.

Here is the call graph for this function:

◆ test_apply_to_matrix_scalar_matches_matrix_and_f32_parity()

def tests.gates.test_gates.TestGateScalarPaths.test_apply_to_matrix_scalar_matches_matrix_and_f32_parity (   self,
  gate_name,
  scalar_inputs 
)

Definition at line 1010 of file test_gates.py.

Here is the call graph for this function:

◆ test_apply_to_state_scalar_matches_matrix_and_f32_parity()

def tests.gates.test_gates.TestGateScalarPaths.test_apply_to_state_scalar_matches_matrix_and_f32_parity (   self,
  gate_name,
  scalar_inputs 
)

Definition at line 996 of file test_gates.py.

Here is the call graph for this function:

◆ test_get_matrix_scalar_f32_parity()

def tests.gates.test_gates.TestGateScalarPaths.test_get_matrix_scalar_f32_parity (   self,
  gate_name 
)

Definition at line 984 of file test_gates.py.

Here is the call graph for this function:

◆ test_get_matrix_scalar_f64_unitary()

def tests.gates.test_gates.TestGateScalarPaths.test_get_matrix_scalar_f64_unitary (   self,
  gate_name 
)

Definition at line 974 of file test_gates.py.

Here is the call graph for this function:

Member Data Documentation

◆ scope

tests.gates.test_gates.TestGateScalarPaths.scope
static

Definition at line 963 of file test_gates.py.


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