class_docstr: Tests for the qml.map_wires method used with operators.
class_docstr_tok: ["Tests","for","the","qml.map_wires","method","used","with","operators","."]
docstr: Test the map_wires method with an operator.
docstr_tok: ["Test","the","map_wires","method","with","an","operator","."]
code: def test_map_wires_with_operator(self):
      """Test the map_wires method with an operator."""
      op = build_op()
  
      m_op = qml.map_wires(op, wire_map=wire_map)
      assert isinstance(m_op, qml.ops.Prod)  # pylint:disable=no-member
      assert m_op.data == mapped_op.data
      assert m_op.wires == mapped_op.wires
      assert m_op.arithmetic_depth == mapped_op.arithmetic_depth
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane.ops import Prod
  from pennylane.tape import QuantumScript
  from pennylane.wires import Wires
label_desc: Use image node_id 1 for calling the TestMapWiresOperators obj's underlying member method code with example usage: obj.test_map_wires_with_operator() without return types