Extending Ising machines for solving machine learning problems and LDPC codes