0.35.1version question

Hey @tx_z, the code base on your repo is quite large. It’ll be quite time consuming for me to parse through it and figure out where the problem is :sweat_smile:.

Based on the error message, something is going on in your circuit function in inception.py:

def circuit(inputs, weights):
    var_per_qubit = int(len(inputs) / n_qubits) + 1
    encoding_gates = ['RZ', 'RY'] * ceil(var_per_qubit / 2)
    for qub in range(n_qubits):
        qml.Hadamard(wires=qub)
        for i in range(var_per_qubit):
            if (qub * var_per_qubit + i) < len(inputs):
                exec('qml.{}({}, wires = {})'.format(encoding_gates[i], inputs[qub * var_per_qubit + i], qub))
            else:  # load nothing
                pass

Specifically, this line:

                exec('qml.{}({}, wires = {})'.format(encoding_gates[i], inputs[qub * var_per_qubit + i], qub))

I would try printing some of the arguments to exec to see what it’s stopping on. Then you can try to match that to something in our deprecations and breaking changes (release notes: Release notes — PennyLane 0.35.1 documentation, deprecations: Deprecations — PennyLane 0.35.1 documentation)

Let me know if that helps!