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.
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.