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

Functions

def _apply (gate, matrix, params, is_f32)
 
def _has_avx2 ()
 
def _make_cnot ()
 
def _make_inputs ()
 
def _make_u3 ()
 
def _parameters (gate, dtype)
 
def _time_apply (gate, dtype)
 
def test_float32_apply_to_hot_path_has_expected_speed (gate_factory, gate_name, min_speedup)
 

Variables

 COLS
 
 MIN_CNOT_SPEEDUP
 
 MIN_FLOAT32_SPEEDUP
 
 QUBIT_NUM
 
 REPEATS
 
 TRIALS
 
 WARMUP
 

Function Documentation

◆ _apply()

def tests.gates.test_float32_performance._apply (   gate,
  matrix,
  params,
  is_f32 
)
private

Definition at line 57 of file test_float32_performance.py.

Here is the caller graph for this function:

◆ _has_avx2()

def tests.gates.test_float32_performance._has_avx2 ( )
private
Return True if the CPU supports AVX2 (needed for efficient float32 SIMD).

Definition at line 14 of file test_float32_performance.py.

Here is the caller graph for this function:

◆ _make_cnot()

def tests.gates.test_float32_performance._make_cnot ( )
private

Definition at line 32 of file test_float32_performance.py.

◆ _make_inputs()

def tests.gates.test_float32_performance._make_inputs ( )
private

Definition at line 47 of file test_float32_performance.py.

Here is the caller graph for this function:

◆ _make_u3()

def tests.gates.test_float32_performance._make_u3 ( )
private

Definition at line 36 of file test_float32_performance.py.

◆ _parameters()

def tests.gates.test_float32_performance._parameters (   gate,
  dtype 
)
private

Definition at line 40 of file test_float32_performance.py.

Here is the caller graph for this function:

◆ _time_apply()

def tests.gates.test_float32_performance._time_apply (   gate,
  dtype 
)
private

Definition at line 64 of file test_float32_performance.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_float32_apply_to_hot_path_has_expected_speed()

def tests.gates.test_float32_performance.test_float32_apply_to_hot_path_has_expected_speed (   gate_factory,
  gate_name,
  min_speedup 
)
Float32 should be a real HPC path, not just accepted at the API boundary.

Definition at line 86 of file test_float32_performance.py.

Here is the call graph for this function:

Variable Documentation

◆ COLS

tests.gates.test_float32_performance.COLS

Definition at line 24 of file test_float32_performance.py.

◆ MIN_CNOT_SPEEDUP

tests.gates.test_float32_performance.MIN_CNOT_SPEEDUP

Definition at line 29 of file test_float32_performance.py.

◆ MIN_FLOAT32_SPEEDUP

tests.gates.test_float32_performance.MIN_FLOAT32_SPEEDUP

Definition at line 28 of file test_float32_performance.py.

◆ QUBIT_NUM

tests.gates.test_float32_performance.QUBIT_NUM

Definition at line 23 of file test_float32_performance.py.

◆ REPEATS

tests.gates.test_float32_performance.REPEATS

Definition at line 26 of file test_float32_performance.py.

◆ TRIALS

tests.gates.test_float32_performance.TRIALS

Definition at line 27 of file test_float32_performance.py.

◆ WARMUP

tests.gates.test_float32_performance.WARMUP

Definition at line 25 of file test_float32_performance.py.