mindquantum.algorithm.qaia.NMFA
- class mindquantum.algorithm.qaia.NMFA(J, h=None, x=None, n_iter=1000, batch_size=1, alpha=0.15, sigma=0.15)[source]
Noisy Mean-field Annealing algorithm.
Reference: Emulating the coherent Ising machine with a mean-field algorithm.
- Parameters
J (Union[numpy.array, csr_matrix]) – The coupling matrix with shape \((N x N)\).
h (numpy.array) – The external field with shape \((N, )\).
x (numpy.array) – The initialized spin value with shape \((N x batch_size)\). Default:
None
.n_iter (int) – The number of iterations. Default:
1000
.batch_size (int) – The number of sampling. Default:
1
.alpha (float) – Momentum factor. Default:
0.15
.sigma (float) – The standard deviation of noise. Default:
0.15
.