class_docstr: Test preprocess produces output that can be executed by the device.
class_docstr_tok: ["Test","preprocess","produces","output","that","can","be","executed","by","the","device","."]
docstr: Test that preprocess throws an error if the split and expanded tapes have
  unsupported operators.
docstr_tok: ["Test","that","preprocess","throws","an","error","if","the","split","and","expanded","tapes","have","unsupported","operators","."]
code: def test_preprocess_check_validity_fail(self):
      """Test that preprocess throws an error if the split and expanded tapes have
      unsupported operators."""
      ops = [
          qml.Hadamard(0),
          NoMatNoDecompOp(1),
          qml.RZ(0.123, wires=1),
      ]
      measurements = [
          [qml.expval(qml.PauliZ(0))],
          [qml.expval(qml.PauliX(1))],
      ]
      tapes = [
          qml.tape.QuantumScript(ops=ops, measurements=measurements[0]),
          qml.tape.QuantumScript(ops=ops, measurements=measurements[1]),
      ]
  
      program, _ = qml.device("default.qubit").preprocess()
      with pytest.raises(
          qml.DeviceError, match="Operator NoMatNoDecompOp"
      ):
          program(tapes)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.devices import DefaultQubit, ExecutionConfig
  from pennylane.devices.default_qubit import stopping_condition
label_desc: Use image node_id 9 for calling the TestPreprocessingIntegration obj's underlying member method code with example usage: obj.test_preprocess_check_validity_fail() without return types