class_docstr: Observable corresponding to the state projector :math:`P=\ket{\phi}\bra{\phi}`, where
  :math:`\phi` denotes a state.
class_docstr_tok: ["Observable","corresponding","to","the","state","projector",":","math",":","`","P=\\ket","{","\\phi","}","\\bra","{","\\phi","}","`",",","where",":","math",":","`","\\phi","`","denotes","a","state","."]
code: def __init__(self, state, wires, id=None):
      wires = Wires(wires)
      state = list(qml.math.toarray(state))
  
      super().__init__(state, wires=wires, id=id)
  
imports: from copy import copy
  from collections.abc import Sequence
  import numpy
  from scipy.sparse import csr_matrix
  import pennylane
  from pennylane.operation import AnyWires, Observable, Operation
  from pennylane.wires import Wires
  from .matrix_ops import QubitUnitary
label_desc: Use image node_id 1 to create a new StateVectorProjector object from inherited base classes: Projector with example: obj = StateVectorProjector(state, wires, id)