def qpsk_detection(data):
    """
    This function performs QPSK demodulation on given data

    Args:
        data (ndarray): Modulated QPSK data

    Returns:
        [ndarray]: Demodulated data
    """
    return (data > 0).astype(int) * 2 - 1