|
Sequential Quantum Gate Decomposer
v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
|
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) |
Apply_to float64: unitary and state-vector correctness.
Definition at line 116 of file test_circuit.py.
| 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.

| 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.

| 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.

1.8.13