big_g

Contents

big_g#

iqm.qaoa.tree_calculation.tree_calculation.big_g(a_t, beta_t)#

Calculates the function \(G(a_t)\) from equations (A45) and (A46) from [].

Parameters:
  • a_t (int) – The variable \(a_t\).

  • beta_t (ndarray[tuple[Any, ...], dtype[float64]]) – An array containing the QAOA beta angles from \(\beta_t\) to \(\beta_p\), where \(p\) is the number of QAOA layers.

Returns:

The result of the calculation.

Return type:

complex128