class_docstr: Mimics NumberOperator using the arbitrary 2nd order observable interface. Results should be identical.
class_docstr_tok: ["Mimics","NumberOperator","using","the","arbitrary","2nd","order","observable","interface",".","Results","should","be","identical","."]
code: def __init__(self, wires):
      q = np.diag([-0.5, 0.5 / hbar, 0.5 / hbar])
      super().__init__(q, wires=wires)
      self.name = "PolyXP"
  
imports: import pytest
  import autograd
  import numpy
  import pennylane.numpy
  import pennylane
label_desc: Use image node_id 1 to create a new PolyN object from inherited base classes: qml.ops with example: obj = PolyN(wires)