qiskit-community / prototype-qrao

Quantum random access optimization prototype
https://arxiv.org/abs/2111.03167
Apache License 2.0
27 stars 15 forks source link

Fix a bug in weighted magic rounding #40

Closed garrison closed 2 years ago

garrison commented 2 years ago

Summary

This fixes a bug in the "weighted" sampling method for magic rounding as well as the corresponding bug in the tests. The expressions are now consistent with the paper and with the other conventions used throughout magic rounding.

Details and comments