def cz_gate_counts_nondeterministic(shots, hex_counts=True):
    """CZ-gate circuits reference counts."""
    targets = []
    if hex_counts:
        # (I^H).CZ.(H^H) = CX10.(H^I), Bell state
        targets.append({'0x0': shots / 2, '0x3': shots / 2})
        # (H^I).CZ.(H^H) = CX01.(I^H), Bell state
        targets.append({'0x0': shots / 2, '0x3': shots / 2})
    else:
        # (I^H).CZ.(H^H) = CX10.(H^I), Bell state
        targets.append({'00': shots / 2, '11': shots / 2})
        # (H^I).CZ.(H^H) = CX01.(I^H), Bell state
        targets.append({'00': shots / 2, '11': shots / 2})
    return targets