class_docstr: Tests depolarizing noise mitigation techniques.
class_docstr_tok: ["Tests","depolarizing","noise","mitigation","techniques","."]
docstr: Test mitigation of depolarizing noise in kernel matrix averaging a single noise rate.
docstr_tok: ["Test","mitigation","of","depolarizing","noise","in","kernel","matrix","averaging","a","single","noise","rate","."]
code: def test_mitigate_depolarizing_noise_average(
      self, input, use_entries, expected_output
  ):
      """Test mitigation of depolarizing noise in kernel matrix averaging a single noise rate."""
      output = kern.mitigate_depolarizing_noise(
          input, self.num_wires, "average", use_entries
      )
      assert np.allclose(output, expected_output)
  
imports: import math
  import sys
  from functools import partial
  import pytest
  import numpy
  import pennylane
  import pennylane.kernels
  from pennylane import numpy
label_desc: Use image node_id 2 for calling the TestMitigation obj's underlying member method code with example usage: obj.test_mitigate_depolarizing_noise_average(input, use_entries, expected_output) without return types