class_docstr: Test that inputs are correctly identified and spectra computed in
  all interfaces.
docstr: Test that the spectra of a circuit is calculated correctly
  in the autograd interface.
docstr_tok: ["Test","that","the","spectra","of","a","circuit","is","calculated","correctly","in","the","autograd","interface","."]
code: def test_integration_autograd(self):
      """Test that the spectra of a circuit is calculated correctly
      in the autograd interface."""
  
      x = pnp.array([1.0, 2.0, 3.0], requires_grad=False)
      w = pnp.array([[-1, -2, -3], [-4, -5, -6]], requires_grad=True)
  
      dev = qml.device("default.qubit", wires=3)
      qnode = qml.QNode(circuit, dev)
  
      res = circuit_spectrum(qnode)(x, w)
      for (k1, v1), (k2, v2) in zip(
          res.items(), expected_result.items()
      ):
          assert k1 == k2
          assert v1 == v2
  
file_path: pennylane/tests/fourier/test_circuit_spectrum.py
imports: import pytest
  import numpy
  import pennylane
  from pennylane import numpy
  from pennylane.fourier.circuit_spectrum import circuit_spectrum
label_desc: Use image node_id 1 for calling the TestInterfaces obj's underlying member method code with example usage: obj.test_integration_autograd() without return types