Merge branch 'main' into feature/proximal_various_codes

This commit is contained in:
Andreas Tsouchlos 2022-11-15 15:34:32 +01:00
commit 081c4a5288

View File

@ -6,19 +6,19 @@ class ProximalDecoder:
by Tadashi Wadayama, and Satoshi Takabe. by Tadashi Wadayama, and Satoshi Takabe.
""" """
def __init__(self, H: np.array, K: int = 100, step_size: float = 0.1, def __init__(self, H: np.array, K: int = 100, omega: float = 0.1,
gamma: float = 0.05, eta: float = 1.5): gamma: float = 0.05, eta: float = 1.5):
"""Construct a new ProximalDecoder Object. """Construct a new ProximalDecoder Object.
:param H: Parity Check Matrix :param H: Parity Check Matrix
:param K: Max number of iterations to perform when decoding :param K: Max number of iterations to perform when decoding
:param step_size: Step size for the gradient descent process :param omega: Step size for the gradient descent process
:param gamma: Positive constant. Arises in the approximation of the prior PDF :param gamma: Positive constant. Arises in the approximation of the prior PDF
:param eta: Positive constant slightly larger than one. See 3.2, p. 3 :param eta: Positive constant slightly larger than one. See 3.2, p. 3
""" """
self._H = H self._H = H
self._K = K self._K = K
self._step_size = step_size self._step_size = omega
self._gamma = gamma self._gamma = gamma
self._eta = eta self._eta = eta