def test_empty_group_paulis_not_allowed() -> None:
    """Test that the group paulis are empty"""
    qubits = cirq.LineQubit.range(5)

    circuit = cirq.FrozenCircuit(_create_ghz(5, qubits))

    circuits_to_pauli: dict[cirq.FrozenCircuit, list[cirq.PauliString]] = {}
    circuits_to_pauli[circuit] = [[]]  # type: ignore
    with pytest.raises(ValueError, match="Empty group of Pauli strings is not allowed"):
        measure_pauli_strings(
            circuits_to_pauli, cirq.Simulator(), 1000, 1000, 1000, np.random.default_rng()
        )
Test that the group paulis are empty
cirq-core/cirq/contrib/paulistring/pauli_string_measurement_with_readout_mitigation_test.py