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