File Not Found Errors when trying to use pennylane orquestra

I recently installed the pennylane orquestra plugin as I’m trying to run some hybrid neural nets on IBM hardware but I’m getting file not found errors when trying to use any orquestra backends. I’m running on Python 3.9.13 through Anaconda and have pennylane 0.29.1 and pennylane-orquestra 0.28.0 installed (shown in conda list), and I can run fine on pennylane backends, just having issues on orquestra. I’m not experienced in python environments so I imagine this may not be an orquestra issue but I haven’t had it on any other packages I’ve installed and used thus far. This is the error I’m getting:

c:\Users\oscar\Documents\Masters ML\Neural Net>C:/Users/oscar/anaconda3/python.exe “c:/Users/oscar/Documents/Masters ML/Neural Net/”
Traceback (most recent call last):
File “c:\Users\oscar\Documents\Masters ML\Neural Net\”, line 13, in
File “C:\Users\oscar\anaconda3\lib\site-packages\pennylane\”, line 889, in call
res = qml.execute(
File “C:\Users\oscar\anaconda3\lib\site-packages\pennylane\interfaces\”, line 729, in execute
res = _execute(
File “C:\Users\oscar\anaconda3\lib\site-packages\pennylane\interfaces\”, line 81, in execute
return _execute(
File “C:\Users\oscar\anaconda3\lib\site-packages\autograd\”, line 48, in f_wrapped
return f_raw(*args, **kwargs)
File “C:\Users\oscar\anaconda3\lib\site-packages\pennylane\interfaces\”, line 125, in _execute
res, jacs = execute_fn(tapes, **gradient_kwargs)
File “C:\Users\oscar\anaconda3\lib\site-packages\pennylane\interfaces\”, line 205, in wrapper
res = fn(execution_tapes.values(), **kwargs)
File “C:\Users\oscar\anaconda3\lib\site-packages\pennylane\interfaces\”, line 131, in fn
return original_fn(tapes, **kwargs)
File “C:\Users\oscar\anaconda3\lib\”, line 79, in inner
return func(*args, **kwds)
File “C:\Users\oscar\anaconda3\lib\site-packages\pennylane_orquestra\”, line 504, in batch_execute
return [self.execute(circuits[0], **kwargs)]
File “C:\Users\oscar\anaconda3\lib\site-packages\pennylane_orquestra\”, line 429, in execute
workflow_id = qe_submit(filepath, keep_file=self._keep_files)
File “C:\Users\oscar\anaconda3\lib\site-packages\pennylane_orquestra\”, line 73, in qe_submit
process = subprocess.Popen(
File “C:\Users\oscar\anaconda3\lib\”, line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “C:\Users\oscar\anaconda3\lib\”, line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

Hey @oscar-wallis! Welcome to the forum :rocket:!

I’m able to replicate your error with this code:

import pennylane as qml

dev_forest = qml.device('orquestra.forest', wires=2)
dev_qiskit = qml.device('orquestra.qiskit', wires=2)

devs = [dev_forest, dev_qiskit]

def circuit():
    return qml.expval(qml.PauliZ(0))

for dev in devs:
    qnode = qml.QNode(circuit, dev)

    except Exception as e:

[Errno 2] No such file or directory: 'qe'
[Errno 2] No such file or directory: 'qe'

Am speaking with some folks on my side and will get back to you to see if there’s an obvious fix or if it’s a bug :thinking:!

Looks like there’s a bug here! Do you mind making an issue on the plugin’s github?