class_docstr: Tests for simple single-qubit observables
class_docstr_tok: ["Tests","for","simple","single-qubit","observables"]
docstr: Test eigenvalues of standard observables are correct
docstr_tok: ["Test","eigenvalues","of","standard","observables","are","correct"]
code: def test_eigvals(self, obs, _, eigs, tol):
      """Test eigenvalues of standard observables are correct"""
      obs = obs(wires=0)
      res = obs.eigvals()
      assert np.allclose(res, eigs, atol=tol, rtol=0)
  
imports: import functools
  import pickle
  import pytest
  import numpy
  from gate_data import I, X, Y, Z, H
  import pennylane
  from pennylane.ops.qubit.observables import BasisStateProjector, StateVectorProjector
label_desc: Use image node_id 7 for calling the TestSimpleObservables obj's underlying member method code with example usage: obj.test_eigvals(obs, _, eigs, tol) without return types