def heisenberg_obs(self, wires):
    'Representation of the observable in the position/momentum operator basis.\n\n        Returns the expansion :math:`q` of the observable, :math:`Q`, in the\n        basis :math:`\\mathbf{r} = (\\I, \\x_0, \\p_0, \\x_1, \\p_1, \\ldots)`.\n\n        * For first-order observables returns a real vector such\n          that :math:`Q = \\sum_i q_i \\mathbf{r}_i`.\n\n        * For second-order observables returns a real symmetric matrix\n          such that :math:`Q = \\sum_{ij} q_{ij} \\mathbf{r}_i \\mathbf{r}_j`.\n\n        Args:\n            wires (Wires): wires on the device that the observable gets applied to\n        Returns:\n            array[float]: :math:`q`\n        '
    p = self.parameters
    U = self._heisenberg_rep(p)
    return self.heisenberg_expand(U, wires)
Representation of the observable in the position/momentum operator basis.

Returns the expansion :math:`q` of the observable, :math:`Q`, in the
basis :math:`\mathbf{r} = (\I, \x_0, \p_0, \x_1, \p_1, \ldots)`.

* For first-order observables returns a real vector such
  that :math:`Q = \sum_i q_i \mathbf{r}_i`.

* For second-order observables returns a real symmetric matrix
  such that :math:`Q = \sum_{ij} q_{ij} \mathbf{r}_i \mathbf{r}_j`.

Args:
    wires (Wires): wires on the device that the observable gets applied to
Returns:
    array[float]: :math:`q`
def heisenberg_obs(self, wires):
    'Representation of the observable in the position/momentum operator basis.\n\n        Returns the expansion :math:`q` of the observable, :math:`Q`, in the\n        basis :math:`\\mathbf{r} = (\\I, \\x_0, \\p_0, \\x_1, \\p_1, \\ldots)`.\n\n        * For first-order observables returns a real vector such\n          that :math:`Q = \\sum_i q_i \\mathbf{r}_i`.\n\n        * For second-order observables returns a real symmetric matrix\n          such that :math:`Q = \\sum_{ij} q_{ij} \\mathbf{r}_i \\mathbf{r}_j`.\n\n        Args:\n            wires (Wires): wires on the device that the observable gets applied to\n        Returns:\n            array[float]: :math:`q`\n        '
    p = self.parameters
    U = self._heisenberg_rep(p)
    return self.heisenberg_expand(U, wires)