def h_gate_counts_nondeterministic(shots, hex_counts=True):
    """H-gate circuits reference counts."""
    targets = []
    if hex_counts:
        # H
        targets.append({'0x0': shots / 2, '0x1': shots / 2})
    else:
        # H
        targets.append({'0': shots / 2, '1': shots / 2})
    return targets