|
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_f32_dtype_preserved (self, qbit_num) |
| def | test_apply_to_f32_state_vector (self, qbit_num) |
| def | test_apply_to_f32_unitary_close_to_f64 (self, qbit_num) |
| def | test_apply_to_f32_wrong_dtype_raises (self) |
| def | test_apply_to_f64_wrong_dtype_raises (self) |
Apply_to float32: complex64 precision correctness against float64 reference.
Definition at line 165 of file test_circuit.py.
| def tests.gates.test_circuit.TestApplyToFloat32.test_apply_to_f32_dtype_preserved | ( | self, | |
| qbit_num | |||
| ) |
Output dtype should remain complex64 after float32 apply_to.
Definition at line 209 of file test_circuit.py.

| def tests.gates.test_circuit.TestApplyToFloat32.test_apply_to_f32_state_vector | ( | self, | |
| qbit_num | |||
| ) |
float32 state vector apply matches float64 reference.
Definition at line 188 of file test_circuit.py.

| def tests.gates.test_circuit.TestApplyToFloat32.test_apply_to_f32_unitary_close_to_f64 | ( | self, | |
| qbit_num | |||
| ) |
float32 apply_to result should be close to float64 result.
Definition at line 169 of file test_circuit.py.

| def tests.gates.test_circuit.TestApplyToFloat32.test_apply_to_f32_wrong_dtype_raises | ( | self | ) |
Passing complex128 with is_f32=True should raise.
Definition at line 220 of file test_circuit.py.

| def tests.gates.test_circuit.TestApplyToFloat32.test_apply_to_f64_wrong_dtype_raises | ( | self | ) |
Passing complex64 with is_f32=False (default) should raise.
Definition at line 229 of file test_circuit.py.

1.8.13