def _get_bitstrings(all_cases_json, case_id, graph_id, optimizer_run_id):
    """Extracts QAOA binary strings distribution associated with an optimal solution for a given workflow run ID."""
    return all_cases_json[case_id]['bitstring-distributions-aggregated'][str(graph_id)][
        str(optimizer_run_id)][
        'bitstring_distribution']