import itertools


def get_state_vect_cols(prefix):
    """Get the column names of the state vector components with the
    provided `prefix`.

    :param prefix: The prefix that is used in front of the state vector
        components in the column names, examples are `physics_pred` and
        `physics_err`
    :type prefix: str

    :return: A list of the 6 names of the prefixed state vector components
    :rtype: [str]
    """
    vectors = ['r', 'v']
    components = ['x', 'y', 'z']
    col_names = [f'{prefix}_{v}_{c}'
                 for v, c
                 in itertools.product(vectors, components)]
    return col_names