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