entropicalabs / openqaoa

Multi-backend SDK for quantum optimisation
MIT License
116 stars 58 forks source link

Fix RYYGate decomposition bug #320

Closed yoshioka1128 closed 1 month ago

yoshioka1128 commented 1 month ago

Description

This pull request addresses a bug in the implementation of the RYY gate within the RYYGateMap class, located in src/openqaoa-core/openqaoa/qaoa_components/ansatz_constructor/gatemap.py. The issue was causing incorrect gate behavior, affecting the accuracy of quantum circuit simulations running in the cloud environment.

Changes:

Corrected the mathematical decomposition of the RYY gate.

Bug Description:

The previous implementation of the RYY gate decomposition had an error in the rotation parameters, which led to unexpected results in our quantum algorithms. This fix corrects the parameters to align with the standard definition of the RYY gate.

Impact:

This fix is critical for any application relying on the accurate implementation of the RYY gate. It ensures that our quantum algorithms perform as expected and that the results are reliable.

Please review the changes and let me know if there are any questions or further modifications needed.

Checklist

Type of change

Please delete options that are not relevant.