class_docstr: Tests for the sign_expand transform
class_docstr_tok: ["Tests","for","the","sign_expand","transform"]
docstr: Tests that the shots attribute is copied to the new tapes
docstr_tok: ["Tests","that","the","shots","attribute","is","copied","to","the","new","tapes"]
code: def test_shots_attribute(self, shots, circuit):
      """Tests that the shots attribute is copied to the new tapes"""
      with qml.queuing.AnnotatedQueue() as q:
          qml.PauliX(0)
          qml.expval(H1)
  
      tape = qml.tape.QuantumScript.from_queue(q, shots=shots)
      new_tapes, _ = qml.transforms.sign_expand(tape, circuit=circuit)
  
      assert all(new_tape.shots == tape.shots for new_tape in new_tapes)
  
file_path: pennylane/tests/transforms/test_sign_expand.py
imports: import functools
  import pytest
  import numpy
  import pennylane
  import pennylane.tape
label_desc: Use image node_id 5 for calling the TestSignExpand obj's underlying member method code with example usage: obj.test_shots_attribute(shots, circuit) without return types