class_docstr: Tests the continuous variable based operations.
docstr: ops: Tests the Heisenberg representation of the Rotation gate.
docstr_tok: ["ops",":","Tests","the","Heisenberg","representation","of","the","Rotation","gate","."]
code: def test_rotation_heisenberg(self, phi):
      """ops: Tests the Heisenberg representation of the Rotation gate."""
      matrix = cv.Rotation._heisenberg_rep([phi])
      true_matrix = np.array(
          [
              [1, 0, 0],
              [0, np.cos(phi), -np.sin(phi)],
              [0, np.sin(phi), np.cos(phi)],
          ]
      )
      assert np.allclose(matrix, true_matrix)
  
imports: import pytest
  import numpy.testing
  from pennylane import numpy
  from pennylane.operation import AnyWires
  from pennylane.ops import cv
  from pennylane.wires import Wires
label_desc: Use image node_id 1 for calling the TestCV obj's underlying member method code with example usage: obj.test_rotation_heisenberg(phi) without return types