Sequential Quantum Gate Decomposer  v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
Classes | Namespaces | Functions | Variables
test_gates.py File Reference

Go to the source code of this file.

Classes

class  tests.gates.test_gates.TestGateDerivativeFiniteDifference
 
class  tests.gates.test_gates.TestGates
 
class  tests.gates.test_gates.TestGateScalarPaths
 

Namespaces

 tests.gates.test_gates
 

Functions

def tests.gates.test_gates._add_gate_to_qiskit (circuit, gate_name, parameters)
 
def tests.gates.test_gates._apply_from_right_with_precision (gate_obj, matrix, parameters, is_f32)
 
def tests.gates.test_gates._apply_gate (gate_obj, state, parameters, is_f32=False, parallel=0)
 
def tests.gates.test_gates._apply_to_matrix_with_precision (gate_obj, matrix, parameters, is_f32)
 
def tests.gates.test_gates._apply_to_state_with_precision (gate_obj, state, parameters, is_f32)
 
def tests.gates.test_gates._assert_matrices_close (a, b, tol=1e-8)
 
def tests.gates.test_gates._discover_gate_names ()
 
def tests.gates.test_gates._discover_multi_qubit_gate_names ()
 
def tests.gates.test_gates._discover_parameterized_gate_names ()
 
def tests.gates.test_gates._gate_matrix (gate_obj, parameters)
 
def tests.gates.test_gates._get_matrix_with_precision (gate_obj, parameters, is_f32)
 
def tests.gates.test_gates._instantiate_gate (gate_name, qbit_num=4)
 
def tests.gates.test_gates._parameters_for_gate (gate_obj, dtype=np.float64)
 

Variables

 tests.gates.test_gates.ALL_GATE_NAMES
 
 tests.gates.test_gates.DERIVATIVE_GATE_NAMES
 
 tests.gates.test_gates.DERIVATIVE_TEST_EXCLUDED_GATES
 
 tests.gates.test_gates.F32_TOL
 
 tests.gates.test_gates.FORBIDDEN_MULTI_QUBIT_GATES_IN_CNOT_BASIS
 
 tests.gates.test_gates.MULTI_QUBIT_GATE_NAMES
 
 tests.gates.test_gates.NATIVE_UNSAFE_APPLY_GATES
 
 tests.gates.test_gates.NATIVE_UNSAFE_MATRIX_GATES
 
 tests.gates.test_gates.QISKIT_EXCLUDED_GATES
 
 tests.gates.test_gates.QISKIT_MATRIX_UNSUPPORTED
 
 tests.gates.test_gates.RECT_COLS_MAX