class_docstr: Test conversion of queues to DAGs
class_docstr_tok: ["Test","conversion","of","queues","to","DAGs"]
docstr: Test that for the given circuit, this method will fetch the correct operation indices for
  a given wire
docstr_tok: ["Test","that","for","the","given","circuit",",","this","method","will","fetch","the","correct","operation","indices","for","a","given","wire"]
code: def test_op_indices(self, circuit):
      """Test that for the given circuit, this method will fetch the correct operation indices for
      a given wire"""
      op_indices_for_wire_0 = [0, 3, 5, 7]
      op_indices_for_wire_1 = [1, 3, 6, 8]
      op_indices_for_wire_2 = [2, 4, 5, 8]
  
      assert circuit.wire_indices(0) == op_indices_for_wire_0
      assert circuit.wire_indices(1) == op_indices_for_wire_1
      assert circuit.wire_indices(2) == op_indices_for_wire_2
  
imports: import io
  import contextlib
  import numpy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.resource import ResourcesOperation, Resources
  from pennylane.circuit_graph import CircuitGraph
  from pennylane.wires import Wires
label_desc: Use image node_id 9 for calling the TestCircuitGraph obj's underlying member method code with example usage: obj.test_op_indices(circuit) without return types