class_docstr: Single-qubit generalized amplitude damping error channel.
  
  This channel models the exchange of energy between a qubit and its environment
  at finite temperatures, with the following Kraus matrices:
  
  .. math::
      K_0 = \sqrt{p} \begin{bmatrix}
              1 & 0 \\
              0 & \sqrt{1-\gamma}
              \end{bmatrix}
  
  .. math::
      K_1 = \sqrt{p}\begin{bmatrix}
              0 & \sqrt{\gamma}  \\
              0 & 0
              \end{bmatrix}
  
  .. math::
      K_2 = \sqrt{1-p}\begin{bmatrix}
              \sqrt{1-\gamma} & 0 \\
              0 & 1
              \end{bmatrix}
  
  .. math::
      K_3 = \sqrt{1-p}\begin{bmatrix}
              0 & 0 \\
              \sqrt{\gamma} & 0
              \end{bmatrix}
  
  where :math:`\gamma \in [0, 1]` is the probability of damping and :math:`p \in [0, 1]`
  is the probability of the system being excited by the environment.
  
  **Details:**
  
  * Number of wires: 1
  * Number of parameters: 2
  
  Args:
      gamma (float): amplitude damping probability
      p (float): excitation probability
      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","generalized","amplitude","damping","error","channel",".","This","channel","models","the","exchange","of","energy","between","a","qubit","and","its","environment","at","finite","temperatures",",","with","the","following","Kraus","matrices",":","..","math",":",":","K_0","=","\\sqrt","{","p","}","\\begin","{","bmatrix","}","1","&","0","\\\\","0","&","\\sqrt","{","1-\\gamma","}","\\end","{","bmatrix","}","..","math",":",":","K_1","=","\\sqrt","{","p","}","\\begin","{","bmatrix","}","0","&","\\sqrt","{","\\gamma","}","\\\\","0","&","0","\\end","{","bmatrix","}","..","math",":",":","K_2","=","\\sqrt","{","1-p","}","\\begin","{","bmatrix","}","\\sqrt","{","1-\\gamma","}","&","0","\\\\","0","&","1","\\end","{","bmatrix","}","..","math",":",":","K_3","=","\\sqrt","{","1-p","}","\\begin","{","bmatrix","}","0","&","0","\\\\","\\sqrt","{","\\gamma","}","&","0","\\end","{","bmatrix","}","where",":","math",":","`","\\gamma","\\in","[","0",",","1","]","`","is","the","probability","of","damping","and",":","math",":","`","p","\\in","[","0",",","1","]","`","is","the","probability","of","the","system","being","excited","by","the","environment",".","*","*","Details",":","*","*","*","Number","of","wires",":","1","*","Number","of","parameters",":","2","Args",":","gamma","(","float",")",":","amplitude","damping","probability","p","(","float",")",":","excitation","probability","wires","(","Sequence","[","int","]","or","int",")",":","the","wire","the","channel","acts","on","id","(","str","or","None",")",":","String","representing","the","operation","(","optional",")"]
code: def __init__(self, gamma, p, wires, id=None):
      super().__init__(gamma, 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 GeneralizedAmplitudeDamping object from inherited base classes: Channel with example: obj = GeneralizedAmplitudeDamping(gamma, p, wires, id)