class_docstr: Test that anti-aliasing techniques give correct results.
class_docstr_tok: ["Test","that","anti-aliasing","techniques","give","correct","results","."]
docstr: Test that anti-aliasing function gives correct results when we ask for
  coefficients below the maximum degree.
docstr_tok: ["Test","that","anti-aliasing","function","gives","correct","results","when","we","ask","for","coefficients","below","the","maximum","degree","."]
code: def test_anti_aliasing_incorrect(
      self, circuit, degree, expected_coeffs
  ):
      """Test that anti-aliasing function gives correct results when we ask for
      coefficients below the maximum degree."""
      coeffs_anti_aliased = coefficients(
          circuit,
          circuit.n_inputs,
          degree,
          lowpass_filter=True,
          filter_threshold=degree + 2,
      )
      assert np.allclose(coeffs_anti_aliased, expected_coeffs)
  
      coeffs_regular = coefficients(circuit, circuit.n_inputs, degree)
      assert not np.allclose(coeffs_regular, expected_coeffs)
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.fourier import coefficients
label_desc: Use image node_id 1 for calling the TestAntiAliasing obj's underlying member method code with example usage: obj.test_anti_aliasing_incorrect(circuit, degree, expected_coeffs) without return types