jpmorganchase / QOKit

QOKit
https://www.jpmorgan.com/technology/applied-research
Apache License 2.0
51 stars 23 forks source link

Fix issue in test_qaoa_objective_labs.py related to energy validation #33

Closed PROFESSOR-DJ closed 9 months ago

PROFESSOR-DJ commented 9 months ago

This pull request addresses the reported issue in the test_qaoa_objective_labs.py file. The issue was related to the validation of energy calculations using different approaches. The proposed changes ensure consistency in energy calculations and resolve discrepancies identified in the test cases.

Changes Made:

  1. Corrected the calculation of energy for terms and precomputed cuts to ensure they match.

  2. Ensured consistency in energy calculations when using different simulators.

  3. Added additional test cases for thorough validation.

This fix enhances the reliability and accuracy of the test cases in the test_qaoa_objective_labs.py file, providing a more robust evaluation of the QAOA objective for LABS problems.

alex124585 commented 9 months ago

This pull request is redundant