entropicalabs / openqaoa

Multi-backend SDK for quantum optimisation
MIT License
113 stars 59 forks source link

Add result statistics on measurement outcomes in QAOAResult object #252

Closed TerraVenil closed 1 year ago

TerraVenil commented 1 year ago

Description

This PR is for solving issue https://github.com/entropicalabs/openqaoa/issues/235.

Checklist

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

test_qaoa_results_calculate_statistics_full, test_qaoa_results_calculate_statistics_without_intermediate, test_qaoa_results_calculate_statistics_raise_value_error.

TerraVenil commented 1 year ago

Hi, @vishal-ph . Just let me know if we want to handle analytical_simulator in a special way.

Q-lds commented 1 year ago

@TerraVenil, very nice contribution! I just left two minor comments/suggestions and then we are good to merge :)

[edit] Make sure you write a message under https://github.com/entropicalabs/openqaoa/issues/235, so that I can assign the issue to you :)