def METHOD_NAME(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