class_docstr: Tests the continuous variable based operations.
docstr: ops: Tests the Heisenberg representation of the QuadOperator gate.
docstr_tok: ["ops",":","Tests","the","Heisenberg","representation","of","the","QuadOperator","gate","."]
code: def test_quadoperator_heisenberg(self, phi):
      """ops: Tests the Heisenberg representation of the QuadOperator gate."""
      matrix = cv.QuadOperator._heisenberg_rep([phi])
      true_matrix = np.array([0, np.cos(phi), np.sin(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 11 for calling the TestCV obj's underlying member method code with example usage: obj.test_quadoperator_heisenberg(phi) without return types