def instrument_trial_pairs(df):
    """
    Extract a list of all unique instrument/trial pairs.
    """
    df_iter = df.groupby(['instrument', 'trial']).size().reset_index()
    return [(r['instrument'], r['trial']) for _, r in df_iter.iterrows()]