def test_invalid_input_pauli_string_type() -> None:
    """Test input circuit is not mapping to a paulistring"""
    qubits_1 = cirq.LineQubit.range(5)
    qubits_2 = [
        cirq.GridQubit(0, 1),
        cirq.GridQubit(1, 1),
        cirq.GridQubit(1, 0),
        cirq.GridQubit(1, 2),
        cirq.GridQubit(2, 1),
    ]

    circuit_1 = cirq.FrozenCircuit(_create_ghz(5, qubits_1))
    circuit_2 = cirq.FrozenCircuit(_create_ghz(5, qubits_2))

    circuits_to_pauli: dict[cirq.FrozenCircuit, cirq.FrozenCircuit] = {}
    circuits_to_pauli[circuit_1] = [_generate_random_pauli_string(qubits_1)]  # type: ignore
    circuits_to_pauli[circuit_2] = [circuit_1, circuit_2]  # type: ignore

    with pytest.raises(
        TypeError,
        match="All elements in the Pauli string lists must be cirq.PauliString "
        "instances, got <class 'cirq.circuits.frozen_circuit.FrozenCircuit'>.",
    ):
        measure_pauli_strings(
            circuits_to_pauli,  # type: ignore[arg-type]
            cirq.Simulator(),
            1000,
            1000,
            1000,
            np.random.default_rng(),
        )
Test input circuit is not mapping to a paulistring
cirq-core/cirq/contrib/paulistring/pauli_string_measurement_with_readout_mitigation_test.py