cuda-quantum
cuda-quantum copied to clipboard
[MPS Simulator] Optimization for XX, YY, ZZ rotations
Description
These are 2-body ops that are commonly used in quantum applications.
Without frontend exposure of (Rxx/XXPhase, Ryy/YYPhase, Rzz/ZZPhase) gates, users need to write them in the decomposed form or using exp_pauli
. Both results in 2 CNOT gates.
This is not ideal for MPS since we want to minimize the number of 2-q gates.
Hence, add a special handling in MPS for these cases.