class_docstr: Single-qubit symmetrically depolarizing error channel.
  
  This channel is modelled by the following Kraus matrices:
  
  .. math::
      K_0 = \sqrt{1-p} \begin{bmatrix}
              1 & 0 \\
              0 & 1
              \end{bmatrix}
  
  .. math::
      K_1 = \sqrt{p/3}\begin{bmatrix}
              0 & 1  \\
              1 & 0
              \end{bmatrix}
  
  .. math::
      K_2 = \sqrt{p/3}\begin{bmatrix}
              0 & -i \\
              i & 0
              \end{bmatrix}
  
  .. math::
      K_3 = \sqrt{p/3}\begin{bmatrix}
              1 & 0 \\
              0 & -1
              \end{bmatrix}
  
  where :math:`p \in [0, 1]` is the depolarization probability and is equally
  divided in the application of all Pauli operations.
  
  .. note::
  
      Multiple equivalent definitions of the Kraus operators :math:`\{K_0 \ldots K_3\}` exist in
      the literature [`1 <https://michaelnielsen.org/qcqi/>`_] (Eqs. 8.102-103). Here, we adopt the
      one from Eq. 8.103, which is also presented in [`2 <http://theory.caltech.edu/~preskill/ph219/chap3_15.pdf>`_] (Eq. 3.85).
      For this definition, please make a note of the following:
  
      * For :math:`p = 0`, the channel will be an Identity channel, i.e., a noise-free channel.
      * For :math:`p = \frac{3}{4}`, the channel will be a fully depolarizing channel.
      * For :math:`p = 1`, the channel will be a uniform Pauli error channel.
  
  **Details:**
  
  * Number of wires: 1
  * Number of parameters: 1
  
  Args:
      p (float): Each Pauli gate is applied with probability :math:`\frac{p}{3}`
      wires (Sequence[int] or int): the wire the channel acts on
      id (str or None): String representing the operation (optional)
class_docstr_tok: ["Single-qubit","symmetrically","depolarizing","error","channel",".","This","channel","is","modelled","by","the","following","Kraus","matrices",":","..","math",":",":","K_0","=","\\sqrt","{","1-p","}","\\begin","{","bmatrix","}","1","&","0","\\\\","0","&","1","\\end","{","bmatrix","}","..","math",":",":","K_1","=","\\sqrt","{","p\/3","}","\\begin","{","bmatrix","}","0","&","1","\\\\","1","&","0","\\end","{","bmatrix","}","..","math",":",":","K_2","=","\\sqrt","{","p\/3","}","\\begin","{","bmatrix","}","0","&","-i","\\\\","i","&","0","\\end","{","bmatrix","}","..","math",":",":","K_3","=","\\sqrt","{","p\/3","}","\\begin","{","bmatrix","}","1","&","0","\\\\","0","&","-1","\\end","{","bmatrix","}","where",":","math",":","`","p","\\in","[","0",",","1","]","`","is","the","depolarization","probability","and","is","equally","divided","in","the","application","of","all","Pauli","operations",".","..","note",":",":","Multiple","equivalent","definitions","of","the","Kraus","operators",":","math",":","`","\\","{","K_0","\\ldots","K_3\\","}","`","exist","in","the","literature","[","`","1","<","https",":","\/\/michaelnielsen.org\/qcqi\/",">","`","_","]","(","Eqs",".","8.102-103",")",".","Here",",","we","adopt","the","one","from","Eq",".","8.103",",","which","is","also","presented","in","[","`","2","<","http",":","\/\/theory.caltech.edu\/~preskill\/ph219\/chap3_15.pdf",">","`","_","]","(","Eq",".","3.85",")",".","For","this","definition",",","please","make","a","note","of","the","following",":","*","For",":","math",":","`","p","=","0","`",",","the","channel","will","be","an","Identity","channel",",","i.e.",",","a","noise-free","channel",".","*","For",":","math",":","`","p","=","\\frac","{","3","}","{","4","}","`",",","the","channel","will","be","a","fully","depolarizing","channel",".","*","For",":","math",":","`","p","=","1","`",",","the","channel","will","be","a","uniform","Pauli","error","channel",".","*","*","Details",":","*","*","*","Number","of","wires",":","1","*","Number","of","parameters",":","1","Args",":","p","(","float",")",":","Each","Pauli","gate","is","applied","with","probability",":","math",":","`","\\frac","{","p","}","{","3","}","`","wires","(","Sequence","[","int","]","or","int",")",":","the","wire","the","channel","acts","on","id","(","str","or","None",")",":","String","representing","the","operation","(","optional",")"]
code: def __init__(self, p, wires, id=None):
      super().__init__(p, wires=wires, id=id)
  
imports: import warnings
  import pennylane.math
  from pennylane.operation import AnyWires, Channel
label_desc: Use image node_id 1 to create a new DepolarizingChannel object from inherited base classes: Channel with example: obj = DepolarizingChannel(p, wires, id)