class_docstr: Observable corresponding to the state projector :math:`P=\ket{\phi}\bra{\phi}`, where
  :math:`\phi` denotes a basis state.
class_docstr_tok: ["Observable","corresponding","to","the","state","projector",":","math",":","`","P=\\ket","{","\\phi","}","\\bra","{","\\phi","}","`",",","where",":","math",":","`","\\phi","`","denotes","a","basis","state","."]
docstr: Sequence of gates that diagonalize the operator in the computational basis (static method).
  
  Given the eigendecomposition :math:`O = U \Sigma U^{\dagger}` where
  :math:`\Sigma` is a diagonal matrix containing the eigenvalues,
  the sequence of diagonalizing gates implements the unitary :math:`U^{\dagger}`.
  
  The diagonalizing gates rotate the state into the eigenbasis
  of the operator.
  
  .. seealso:: :meth:`~.BasisStateProjector.diagonalizing_gates`.
  
  Args:
      basis_state (Iterable): basis state that the operator projects on
      wires (Iterable[Any], Wires): wires that the operator acts on
  Returns:
      list[.Operator]: list of diagonalizing gates
  
  **Example**
  
  >>> BasisStateProjector.compute_diagonalizing_gates([0, 1, 0, 0], wires=[0, 1])
  []
docstr_tok: ["Sequence","of","gates","that","diagonalize","the","operator","in","the","computational","basis","(","static","method",")",".","Given","the","eigendecomposition",":","math",":","`","O","=","U","\\Sigma","U^","{","\\dagger","}","`","where",":","math",":","`","\\Sigma","`","is","a","diagonal","matrix","containing","the","eigenvalues",",","the","sequence","of","diagonalizing","gates","implements","the","unitary",":","math",":","`","U^","{","\\dagger","}","`",".","The","diagonalizing","gates","rotate","the","state","into","the","eigenbasis","of","the","operator",".","..","seealso",":",":",":","meth",":","`","~.BasisStateProjector.diagonalizing_gates","`",".","Args",":","basis_state","(","Iterable",")",":","basis","state","that","the","operator","projects","on","wires","(","Iterable","[","Any","]",",","Wires",")",":","wires","that","the","operator","acts","on","Returns",":","list","[",".Operator","]",":","list","of","diagonalizing","gates","*","*","Example","*","*",">",">",">","BasisStateProjector.compute_diagonalizing_gates","(","[","0",",","1",",","0",",","0","]",",","wires=","[","0",",","1","]",")","[","]"]
code: def compute_diagonalizing_gates(
      basis_state, wires
  ):  # pylint: disable=arguments-differ,unused-argument
      r"""Sequence of gates that diagonalize the operator in the computational basis (static method).
  
      Given the eigendecomposition :math:`O = U \Sigma U^{\dagger}` where
      :math:`\Sigma` is a diagonal matrix containing the eigenvalues,
      the sequence of diagonalizing gates implements the unitary :math:`U^{\dagger}`.
  
      The diagonalizing gates rotate the state into the eigenbasis
      of the operator.
  
      .. seealso:: :meth:`~.BasisStateProjector.diagonalizing_gates`.
  
      Args:
          basis_state (Iterable): basis state that the operator projects on
          wires (Iterable[Any], Wires): wires that the operator acts on
      Returns:
          list[.Operator]: list of diagonalizing gates
  
      **Example**
  
      >>> BasisStateProjector.compute_diagonalizing_gates([0, 1, 0, 0], wires=[0, 1])
      []
      """
      return []
  
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 6 for calling the BasisStateProjector obj's underlying member method code with example usage: obj.compute_diagonalizing_gates(basis_state, wires) and returns: list