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

Extending the RichExtrapDecorator implementation to support actual extrapolation #538

Closed 1tnguyen closed 2 years ago

1tnguyen commented 2 years ago

The current RichExtrapDecorator implementation only performs gate (CNOT) folding by a certain factor and then executes. i.e., users will perform extrapolation manually as a post-processing task.

This PR extends this plugin (keeping the above legacy functionality as is) by allowing users to input a set of scaling factors, e.g., {1,3,5,7} to fold a certain gate, e.g., CNOT.

Then, using a simple poly-fitting procedure to compute the extrapolated exp-val-z based on the results from those folded circuits.