exp_gamma

Contents

exp_gamma#

iqm.qaoa.tree_calculation.tree_calculation.exp_gamma(big_d, h, big_gamma_pruned, a, b)#

Calculates the complex exponential in the 2nd half of (A23).

Parameters:
  • big_d (int) – Graph regularity minus one. It appears in denominators as \(\sqrt{D}\) instead of \(\sqrt{D+1} = \sqrt{d}\) which appears in the formula in the paper.

  • h (float) – The local field of the problem.

  • big_gamma_pruned (ndarray[tuple[Any, ...], dtype[float64]]) – The array of gamma angles \(\mathbb{\Gamma}^{(m-1)}\). sorted ascendingly and descendingly in an array like \((\gamma_1, \gamma_2, ... , \gamma_{p-1}, -\gamma_{p-1}, ..., -\gamma_2, -\gamma_1)\).

  • a (ndarray[tuple[Any, ...], dtype[float64]]) – The vector \(\mathbb{a}^{(m-1)}\).

  • b (ndarray[tuple[Any, ...], dtype[float64]]) – The vector \(\mathbb{b}^{(m-1)}\)

Returns:

The product of the two exponential terms in (A23).

Return type:

complex128