class_docstr: Tests that the template defines the correct decomposition.
class_docstr_tok: ["Tests","that","the","template","defines","the","correct","decomposition","."]
docstr: Test that the circuit is fixed by the seed.
docstr_tok: ["Test","that","the","circuit","is","fixed","by","the","seed","."]
code: def test_seed(self):
      """Test that the circuit is fixed by the seed."""
      weights = np.random.random((2, 3))
  
      op1 = qml.RandomLayers(weights, wires=range(2), seed=41)
      op2 = qml.RandomLayers(weights, wires=range(2), seed=42)
      op3 = qml.RandomLayers(weights, wires=range(2), seed=42)
  
      queue1 = op1.expand().operations
      decomp1 = op1.compute_decomposition(
          *op1.parameters, wires=op1.wires, **op1.hyperparameters
      )
      queue2 = op2.expand().operations
      decomp2 = op2.compute_decomposition(
          *op2.parameters, wires=op2.wires, **op2.hyperparameters
      )
      queue3 = op3.expand().operations
      decomp3 = op3.compute_decomposition(
          *op3.parameters, wires=op3.wires, **op3.hyperparameters
      )
  
      assert not all(
          g1.name == g2.name for g1, g2 in zip(queue1, queue2)
      )
      assert all(g2.name == g3.name for g2, g3 in zip(queue2, queue3))
  
      assert all(
          qml.equal(op1, op2) for op1, op2 in zip(queue1, decomp1)
      )
      assert all(
          qml.equal(op1, op2) for op1, op2 in zip(queue2, decomp2)
      )
      assert all(
          qml.equal(op1, op2) for op1, op2 in zip(queue3, decomp3)
      )
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 1 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_seed() without return types