eclipse / xacc

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

Updating getExpectationValueZ method #550

Closed AngusMingare closed 2 years 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.