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