Sequential Quantum Gate Decomposer  v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
Functions
tests.decomposition.test_float32_wrapper Namespace Reference

Functions

def _identity (n=2, dtype=np.complex64)
 
def test_decomposition_wrappers_accept_complex64_with_use_float ()
 
def test_float32_combined_handles_nested_gate_blocks_repeatedly ()
 
def test_float32_parameters_work_for_cost_grad_and_batch ()
 
def test_nested_gate_block_combined_gradient_matches_finite_difference ()
 
def test_set_unitary_accepts_complex64_and_keeps_float_getter ()
 
def test_use_float_returns_float32_unitary_and_matrix ()
 
def test_use_float_routes_complex128_input_to_float_path ()
 

Function Documentation

◆ _identity()

def tests.decomposition.test_float32_wrapper._identity (   n = 2,
  dtype = np.complex64 
)
private

Definition at line 13 of file test_float32_wrapper.py.

Here is the caller graph for this function:

◆ test_decomposition_wrappers_accept_complex64_with_use_float()

def tests.decomposition.test_float32_wrapper.test_decomposition_wrappers_accept_complex64_with_use_float ( )

Definition at line 17 of file test_float32_wrapper.py.

Here is the call graph for this function:

◆ test_float32_combined_handles_nested_gate_blocks_repeatedly()

def tests.decomposition.test_float32_wrapper.test_float32_combined_handles_nested_gate_blocks_repeatedly ( )

Definition at line 86 of file test_float32_wrapper.py.

Here is the call graph for this function:

◆ test_float32_parameters_work_for_cost_grad_and_batch()

def tests.decomposition.test_float32_wrapper.test_float32_parameters_work_for_cost_grad_and_batch ( )

Definition at line 66 of file test_float32_wrapper.py.

Here is the call graph for this function:

◆ test_nested_gate_block_combined_gradient_matches_finite_difference()

def tests.decomposition.test_float32_wrapper.test_nested_gate_block_combined_gradient_matches_finite_difference ( )

Definition at line 114 of file test_float32_wrapper.py.

Here is the call graph for this function:

◆ test_set_unitary_accepts_complex64_and_keeps_float_getter()

def tests.decomposition.test_float32_wrapper.test_set_unitary_accepts_complex64_and_keeps_float_getter ( )

Definition at line 55 of file test_float32_wrapper.py.

Here is the call graph for this function:

◆ test_use_float_returns_float32_unitary_and_matrix()

def tests.decomposition.test_float32_wrapper.test_use_float_returns_float32_unitary_and_matrix ( )

Definition at line 43 of file test_float32_wrapper.py.

Here is the call graph for this function:

◆ test_use_float_routes_complex128_input_to_float_path()

def tests.decomposition.test_float32_wrapper.test_use_float_routes_complex128_input_to_float_path ( )

Definition at line 32 of file test_float32_wrapper.py.

Here is the call graph for this function: