Gate fusion via set_min_fusion: fused results must match unfused.
Definition at line 580 of file test_circuit.py.
◆ _make_multi_gate_circuit()
| def tests.gates.test_circuit.TestGateFusion._make_multi_gate_circuit |
( |
|
self, |
|
|
|
qbit_num |
|
) |
| |
|
private |
Build a circuit with enough gates to trigger fusion.
Definition at line 583 of file test_circuit.py.
◆ test_fusion_large_circuit_avx_tbb_path()
| def tests.gates.test_circuit.TestGateFusion.test_fusion_large_circuit_avx_tbb_path |
( |
|
self, |
|
|
|
min_fusion |
|
) |
| |
With qbit_num=14 the fused path uses apply_large_kernel_to_input_AVX_TBB.
Compare against an unfused circuit to verify correctness.
Definition at line 642 of file test_circuit.py.
◆ test_fusion_state_vector_matches_unfused()
| def tests.gates.test_circuit.TestGateFusion.test_fusion_state_vector_matches_unfused |
( |
|
self, |
|
|
|
qbit_num, |
|
|
|
min_fusion |
|
) |
| |
Fused circuit applied to a state should match unfused result.
Definition at line 620 of file test_circuit.py.
◆ test_fusion_unitary_matches_unfused()
| def tests.gates.test_circuit.TestGateFusion.test_fusion_unitary_matches_unfused |
( |
|
self, |
|
|
|
qbit_num, |
|
|
|
min_fusion |
|
) |
| |
Fused circuit unitary should match unfused for various min_fusion values.
Definition at line 600 of file test_circuit.py.
The documentation for this class was generated from the following file: