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 while queuing with `queue = True` and `replace=True`.
docstr_tok: ["Test","the","map_wires","method","while","queuing","with","`","queue","=","True","`","and","`","replace=True","`","."]
code: def test_map_wires_with_queuing_and_with_replacing(self):
      """Test the map_wires method while queuing with `queue = True` and `replace=True`."""
      with qml.queuing.AnnotatedQueue() as q:
          op = build_op()
          m_op = qml.map_wires(
              op, wire_map=wire_map, queue=True, replace=True
          )
  
      assert len(q) == 1
      assert q.queue[0] is m_op
  
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 4 for calling the TestMapWiresOperators obj's underlying member method code with example usage: obj.test_map_wires_with_queuing_and_with_replacing() without return types