def METHOD_NAME(self):
    """Test that an error is thrown if gates marked as encoding gates
    are not single-parameter gates."""
    dev = qml.device("default.qubit", wires=3)
    @qml.qnode(dev)
    def _circuit():
        qml.RX(0.1, wires=0, id="x")
        qml.Rot(0.2, 0.3, 0.4, wires=1, id="x")
        return qml.expval(qml.PauliZ(wires=0))
    with pytest.raises(ValueError, match="Can only consider one-parameter gates"):
        circuit_spectrum(_circuit)()