class_docstr: Tests for simple single-qutrit observables
class_docstr_tok: ["Tests","for","simple","single-qutrit","observables"]
docstr: Test that the Gell-Mann matrices are correct
docstr_tok: ["Test","that","the","Gell-Mann","matrices","are","correct"]
code: def test_matrix(self, index, mat, eigs, tol):
      """Test that the Gell-Mann matrices are correct"""
      res_static = qml.GellMann.compute_matrix(index)
      res_dynamic = qml.GellMann(wires=0, index=index).matrix()
  
      assert np.allclose(res_static, mat)
      assert np.allclose(res_dynamic, mat)
  
imports: import functools
  from unittest.mock import PropertyMock, patch
  import pytest
  import numpy
  from gate_data import GELL_MANN
  import pennylane
label_desc: Use image node_id 3 for calling the TestGellMann obj's underlying member method code with example usage: obj.test_matrix(index, mat, eigs, tol) without return types