class_docstr: Tests for simple single-qubit observables
class_docstr_tok: ["Tests","for","simple","single-qubit","observables"]
docstr: Test matrices of standard observables are correct
docstr_tok: ["Test","matrices","of","standard","observables","are","correct"]
code: def test_matrices(self, obs, mat, _, tol):
      """Test matrices of standard observables are correct"""
      obs = obs(wires=0)
      res = obs.matrix()
      assert np.allclose(res, mat, 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 8 for calling the TestSimpleObservables obj's underlying member method code with example usage: obj.test_matrices(obs, mat, _, tol) without return types