class_docstr: Test that the `pow` method works for parametric qutrit operations.
docstr: Test that the matrix of an op first raised to a power is the same as the
  matrix raised to the power.  This test only can work for integer powers.
code: def test_pow_matrix(self, op, n):
      """Test that the matrix of an op first raised to a power is the same as the
      matrix raised to the power.  This test only can work for integer powers.
      """
      op_mat = qml.matrix(op)
      # Can't use qml.matrix(op.pow)(n) because qml.matrix is hardcoded to work with qubits
      # TODO: update this test once qml.matrix is updated
      pow_mat = op.pow(n)[0].matrix()
  
      assert qml.math.allclose(
          qml.math.linalg.matrix_power(op_mat, n), pow_mat
      )
  
imports: import copy
  from functools import reduce
  import pytest
  import numpy
  from gate_data import TSHIFT, TCLOCK
  from pennylane import numpy
  import pennylane
  from pennylane.wires import Wires
label_desc: Use image node_id 2 for calling the TestParametricPow obj's underlying member method code with example usage: obj.test_pow_matrix(op, n) without return types