eclipse / xacc

XACC - eXtreme-scale Accelerator programming framework
https://xacc.readthedocs.io
BSD 3-Clause "New" or "Revised" License
163 stars 84 forks source link

Updating getExpectationValueZ method to be compatible with >31 qubits #549

Closed AngusMingare closed 1 year ago

AngusMingare commented 2 years ago

The previous implementation of getExpectationValueZ method calculated the parity of the measured string as an integer, limiting it to a buffer of < 32 qubits.

The new implementation calculates the parity of the measured string directly allowing it to be compatible with any number of qubits.

amccaskey commented 1 year ago

Make sure the email in your signature is the same as the email in your Eclipse account. Also make sure you signed in to your account and signed the CLA.

1tnguyen commented 1 year ago

This looks good and all the tests and checks are passing. Thanks for your contributions!