quantumlib / OpenFermion

The electronic structure package for quantum computers.
Apache License 2.0
1.52k stars 376 forks source link

Verified phase estimation - estimators #683

Closed obriente closed 4 years ago

obriente commented 4 years ago

Splitting a relatively large PR into some staging (this is stage 1)

This PR implements the data processing required for verified phase estimation. It shifts some of the basic lstsq curve-fitting functions from measurements to linalg, and it creates an estimator that analyses VPE data to extract phase function estimates from a set of cirq.TrialResults (circuits to generate those results to come in the next stage), and expectation values from a phase function.

@ncrubin , could you take a look at this one?