def test_invalid_input_circuit_type() -> None:
    """Test that the input circuit type is not frozen circuit"""
    qubits = cirq.LineQubit.range(5)

    qubits_to_pauli: dict[tuple, list[cirq.PauliString]] = {}
    qubits_to_pauli[tuple(qubits)] = [cirq.PauliString({q: cirq.X for q in qubits})]
    with pytest.raises(
        TypeError, match="All keys in 'circuits_to_pauli' must be FrozenCircuit instances."
    ):
        measure_pauli_strings(
            qubits_to_pauli,  # type: ignore[arg-type]
            cirq.Simulator(),
            1000,
            1000,
            1000,
            np.random.default_rng(),
        )
Test that the input circuit type is not frozen circuit
cirq-core/cirq/contrib/paulistring/pauli_string_measurement_with_readout_mitigation_test.py