def dequantize(Q, cp, cn):
    """
    Dequanitze from the given 1-bit quantization and the reconstruction values.
    Parameters:
        Q : input quantized values (+/-  1)
        cp: center of the quantization bins for positive values
        cn: center of the quantization bins for negative values
    """

    Qn = 1 - Q
    Wh = cp * Q + cn * Qn

    return Wh