def METHOD_NAME(device):
    circuit = cirq.Circuit()
    circuit.append(
        [cirq.measure(cirq.LineQubit(0), key='a'), cirq.measure(cirq.LineQubit(1), key='a')]
    )
    with pytest.raises(ValueError, match='Measurement key a repeated'):
        device.validate_circuit(circuit)