matrix_SPSA_algorithm.py#

This file contains the code for estimating the gradient with SPSA.

calculate_numerator_SPSA(high_stat, ...)

Calculates the numerator of the SPSA gradient.

SPSA_gradient(theta, initial_trans_matrix, ...)

Calculates the SPSA gradient.