def make_entry(bus_index, phase_index, P, Q, V_real, V_imag):
    """Make a state estimation entry to be sent to the GA.

    Parameters
    ----------
        bus_index : int
            Index of the bus that was sensed.

        phase_index : {1, 2, 3}
            Index of the phase shift that was used.  `1` denotes 0
            degrees, `2` denotes +120 degrees, and `3` denotes -120
            degrees.

        P : float
            Real power (P, in W).

        Q : float
            Reactive power (Q, in Var).

        V_real : float
            Real part of the voltage.

        V_imag : float
            Imaginary part of the voltage.

    Returns
    -------
        entry : dict
            Entry to be sent to the GA.

    """
    assert phase_index in {1, 2, 3}
    return {
        'bus_index': bus_index,
        'phase_index': phase_index,
        'P': P,
        'Q': Q,
        'v_bus_real': V_real,
        'v_bus_imag': V_imag
    }