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
tests.gates.test_circuit.TestApplyToFloat64 Class Reference

Public Member Functions

def test_apply_to_state_vector (self, qbit_num)
 
def test_apply_to_twice_is_squared_unitary (self, qbit_num)
 
def test_apply_to_unitary_matches_get_matrix (self, qbit_num)
 

Detailed Description

Apply_to float64: unitary and state-vector correctness.

Definition at line 116 of file test_circuit.py.

Member Function Documentation

◆ test_apply_to_state_vector()

def tests.gates.test_circuit.TestApplyToFloat64.test_apply_to_state_vector (   self,
  qbit_num 
)
apply_to on a state vector should give U @ |state>.

Definition at line 133 of file test_circuit.py.

Here is the call graph for this function:

◆ test_apply_to_twice_is_squared_unitary()

def tests.gates.test_circuit.TestApplyToFloat64.test_apply_to_twice_is_squared_unitary (   self,
  qbit_num 
)
Applying circuit twice equals U^2 applied to identity.

Definition at line 150 of file test_circuit.py.

Here is the call graph for this function:

◆ test_apply_to_unitary_matches_get_matrix()

def tests.gates.test_circuit.TestApplyToFloat64.test_apply_to_unitary_matches_get_matrix (   self,
  qbit_num 
)
apply_to on identity should reproduce get_Matrix output.

Definition at line 120 of file test_circuit.py.

Here is the call graph for this function:

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