def test_can_handle_zero_random_bitstring():
    """Test shuffled circuits without readout benchmarking."""
    qubits_1 = cirq.LineQubit.range(3)
    qubits_2 = cirq.LineQubit.range(4)

    readout_qubits = [qubits_1, qubits_2]

    # Generate random input circuits and append measurements
    input_circuits = _create_test_circuits(qubits_1, 6) + _create_test_circuits(qubits_2, 4)

    sampler = NoisySingleQubitReadoutSampler(p0=0.1, p1=0.3, seed=1234)
    circuit_repetitions = 1
    rng = np.random.default_rng()
    readout_repetitions = 1000

    measurements, readout_calibration_results = (
        cirq.contrib.shuffle_circuits.run_shuffled_with_readout_benchmarking(
            input_circuits,
            sampler,
            circuit_repetitions,
            rng,
            num_random_bitstrings=0,
            readout_repetitions=readout_repetitions,
            qubits=readout_qubits,
        )
    )

    for measurement in measurements:
        assert isinstance(measurement, ResultDict)
    # Check that the readout_calibration_results is empty
    assert len(readout_calibration_results.items()) == 0
Test shuffled circuits without readout benchmarking.
cirq-core/cirq/contrib/shuffle_circuits/shuffle_circuits_with_readout_benchmarking_test.py