def METHOD_NAME(self, phi: float, id_coefficient: float = 0.0) -> float:
    r"""Convert a phase into an eigenvalue.
    The input phase ``phi`` corresponds to the eigenvalue of a unitary obtained by
    exponentiating a scaled Hermitian operator. Recall that the phase
    is obtained from ``phi`` as :math:`2\pi\phi`. Furthermore, the Hermitian operator
    was scaled so that ``phi`` is restricted to :math:`[-1/2, 1/2]`, corresponding to
    phases in :math:`[-\pi, \pi]`. But the values of `phi` read from the phase-readout
    register are in :math:`[0, 1)`. Any value of ``phi`` greater than :math:`1/2` corresponds
    to a raw phase of minus the complement with respect to 1. After this possible
    shift, the phase is scaled by the inverse of the factor by which the
    Hermitian operator was scaled to recover the eigenvalue of the Hermitian
    operator.
    Args:
        phi: Normalized phase in :math:`[0, 1)` to be converted to an eigenvalue.
        id_coefficient: All eigenvalues are shifted by this value.
    Returns:
        An eigenvalue computed from the input phase.
    """
    w = 2 * self._bound
    if phi <= 0.5:
        return phi * w + id_coefficient
    else:
        return (phi - 1) * w + id_coefficient