class_docstr: Tests for the sign_expand transform
class_docstr_tok: ["Tests","for","the","sign_expand","transform"]
docstr: Tests that the sign_expand transform returns the correct value
docstr_tok: ["Tests","that","the","sign_expand","transform","returns","the","correct","value"]
code: def test_hamiltonians_vars(self, tape, output):
      """Tests that the sign_expand transform returns the correct value"""
  
      tapes, fn = qml.transforms.sign_expand(tape)
      results = dev.execute(tapes)
      expval = fn(results)
  
      assert np.isclose(output, expval)
  
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 8 for calling the TestSignExpand obj's underlying member method code with example usage: obj.test_hamiltonians_vars(tape, output) without return types