qiboteam / rtqem

Impact of error mitigation using a quantum device as a regressor.
3 stars 0 forks source link

Two different methods for evaluating predictions #4

Closed MatteoRobbiati closed 1 year ago

MatteoRobbiati commented 1 year ago

After a discussion with @BrunoLiegiBastonLiegi, we suggest to divide the one_prediction function into the following two:

  1. prediction without mitigation inside;
  2. mitigated_prediction with mitigation inside.

This can be useful for adding a new level into our analysis: also the parameter shift rule makes large use of the predictions (basically it evaluates the observable twice, using two shifted parameters $\mu^{\pm}$) instead of the original $\mu$. With the purposed splitting we can:

MatteoRobbiati commented 1 year ago

I think this can be closed, right?

BrunoLiegiBastonLiegi commented 1 year ago

Yes, even though, at the moment the default behaviour of vqregressor is the last one. The other possibilities are not implemented yet.