class_docstr: Test that wire_order=None is deprecated for the qml.matrix transform.
class_docstr_tok: ["Test","that","wire_order=None","is","deprecated","for","the","qml.matrix","transform","."]
docstr: Test that a warning is raised when calling qml.matrix without wire_order on a QNode.
code: def test_warning_qnode(self):
      """Test that a warning is raised when calling qml.matrix without wire_order on a QNode."""
  
      @qml.qnode(
          qml.device("default.qubit")
      )  # devices does not provide wire_order
      def circuit():
          qml.PauliX(0)
          return qml.state()
  
      with pytest.warns(
          qml.PennyLaneDeprecationWarning,
          match=r"Calling qml\.matrix\(\) on",
      ):
          _ = qml.matrix(circuit)
  
imports: from functools import reduce, partial
  from warnings import catch_warnings
  import pytest
  from gate_data import I, X, Y, Z, H, S, CNOT, Rotx, Roty
  import pennylane
  from pennylane import numpy
  from pennylane.transforms.op_transforms import OperationTransformError
label_desc: Use image node_id 2 for calling the TestWireOrderDeprecation obj's underlying member method code with example usage: obj.test_warning_qnode() and returns: qml