class_docstr: Test conversion of queues to DAGs
class_docstr_tok: ["Test","conversion","of","queues","to","DAGs"]
docstr: A test of a simple circuit with 3 layers and 6 trainable parameters
docstr_tok: ["A","test","of","a","simple","circuit","with","3","layers","and","6","trainable","parameters"]
code: def test_layers(self, parameterized_circuit_gaussian, wires):
      """A test of a simple circuit with 3 layers and 6 trainable parameters"""
  
      dev = qml.device("default.gaussian", wires=wires)
      qnode = qml.QNode(parameterized_circuit_gaussian, dev)
      qnode(
          *pnp.array([0.1, 0.2, 0.3, 0.4, 0.5, 0.6], requires_grad=True)
      )
      circuit = qnode.qtape.graph
      layers = circuit.parametrized_layers
      ops = circuit.operations
  
      assert len(layers) == 3
      assert layers[0].ops == [ops[x] for x in [0, 1, 2]]
      assert layers[0].param_inds == [0, 1, 2]
      assert layers[1].ops == [ops[3]]
      assert layers[1].param_inds == [3]
      assert layers[2].ops == [ops[x] for x in [5, 6]]
      assert layers[2].param_inds == [6, 7]
  
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 10 for calling the TestCircuitGraph obj's underlying member method code with example usage: obj.test_layers(parameterized_circuit_gaussian, wires) without return types