mindquantum.algorithm.error_mitigation.zne

View Source On Gitee
mindquantum.algorithm.error_mitigation.zne(circuit: Circuit, executor: Callable[[Circuit], float], scaling: List[float] = None, order=None, method='R', a=0, args=None)[source]

Zero noise extrapolation.

Parameters
  • circuit (Circuit) – A quantum circuit.

  • executor (Callable[[Circuit], float]) – A callable method that can evaluate a quantum circuit and return some value.

  • scaling (List[float]) – The scaling factor to folding circuit. If None, it will be [1.0, 2.0, 3.0]. Default: None.

  • order (float) – Order of extrapolation for polynomial. Default: None.

  • method (str) – Extrapolation method, could be 'R' (Richardson), 'P' (polynomial) and 'PE' (poly exponential). Default: 'R'.

  • a (float) – Poly exponential extrapolation factor. Default: 0.

  • args (Tuple) – The other arguments for executor except first one.