class_docstr: Test that anti-aliasing techniques give correct results.
class_docstr_tok: ["Test","that","anti-aliasing","techniques","give","correct","results","."]
docstr: Test that the coefficients obtained through anti-aliasing are the
  same as the ones when we don't anti-alias at the correct degree.
docstr_tok: ["Test","that","the","coefficients","obtained","through","anti-aliasing","are","the","same","as","the","ones","when","we","do","n't","anti-alias","at","the","correct","degree","."]
code: def test_anti_aliasing(self, circuit, degree, threshold):
      """Test that the coefficients obtained through anti-aliasing are the
      same as the ones when we don't anti-alias at the correct degree.
      """
      coeffs_regular = coefficients(
          circuit,
          circuit.n_inputs,
          degree,
          lowpass_filter=False,
          filter_threshold=threshold,
      )
      coeffs_anti_aliased = coefficients(
          circuit,
          circuit.n_inputs,
          degree,
          lowpass_filter=True,
          filter_threshold=threshold,
      )
  
      assert np.allclose(coeffs_regular, coeffs_anti_aliased)
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.fourier import coefficients
label_desc: Use image node_id 2 for calling the TestAntiAliasing obj's underlying member method code with example usage: obj.test_anti_aliasing(circuit, degree, threshold) without return types