cuda-quantum icon indicating copy to clipboard operation
cuda-quantum copied to clipboard

[MPS Simulator] Optimization for XX, YY, ZZ rotations

Open 1tnguyen opened this issue 1 year ago • 1 comments

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.

1tnguyen avatar May 17 '24 02:05 1tnguyen

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions[bot] avatar May 17 '24 03:05 github-actions[bot]

Team, any updates on this, please? This is holding a benchmark for a collaboration currently so would be nice to get it moving if we can.

Thanks :)

zohimchandani avatar May 30 '24 08:05 zohimchandani

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions[bot] avatar May 30 '24 23:05 github-actions[bot]

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions[bot] avatar May 31 '24 00:05 github-actions[bot]

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions[bot] avatar May 31 '24 02:05 github-actions[bot]

Do we need to add these gates in the docs?

zohimchandani avatar May 31 '24 12:05 zohimchandani

Do we need to add these gates in the docs?

We don't actually add any 'new' gates. I think the expression of Rxx/XXPhase, Ryy/YYPhase, or Rzz/ZZPhase in terms of exp_pauli could be added to our docs as a footnote/example. Most other frameworks that have these native gates should already have equations for the gate matrix in terms of Pauli exponential.

1tnguyen avatar Jun 03 '24 00:06 1tnguyen