def METHOD_NAME(self):
    """Test that the spectrum changes per call if a qnode argument changes the
    circuit architecture."""
    dev = qml.device("default.qubit", wires=3)
    @qml.qnode(dev)
    def _circuit(last_gate):
        qml.RX(0.1, wires=0, id="x")
        qml.RX(0.2, wires=1, id="x")
        if last_gate:
            qml.RX(0.3, wires=2, id="x")
        return qml.expval(qml.PauliZ(wires=0))
    res_true = circuit_spectrum(_circuit)(True)
    assert np.allclose(res_true["x"], range(-3, 4))
    res_false = circuit_spectrum(_circuit)(False)
    assert np.allclose(res_false["x"], range(-2, 3))