estimate_phase_from_moments¶
-
forest.benchmarking.robust_phase_estimation.
estimate_phase_from_moments
(xs: List[T], ys: List[T], x_stds: List[T], y_stds: List[T], bloch_data: List[T] = None) → float¶ Estimate the phase in an iterative fashion as described in section V. of [RPE]
Note: in the realistic case that additive errors are present, the estimate is biased. See Appendix B of [RPE] for discussion/comparison to other techniques.
Parameters: - xs – expectation value <X> operator for each iteration
- ys – expectation value <Y> operator for each iteration
- x_stds – standard deviation of the mean for ‘xs’
- y_stds – standard deviation of the mean for ‘ys’
- bloch_data – if provided, list is mutated to store the radius and angle of each iteration
Returns: An estimate of the phase of the rotation program passed into generate_rpe_experiments