pasqal-io / qadence

Digital-analog quantum programming interface
https://pasqal-io.github.io/qadence/latest/
Apache License 2.0
72 stars 21 forks source link

[Fix] Change shadow algorithm for using only samples #608

Closed chMoussa closed 2 weeks ago

chMoussa commented 2 weeks ago

Solves #607 Since we use shadows for computing expectation values only, the randomized version is just about using samples and averaging them for the case the sampled pauli-string correspond to the target pauli-string.