I'm trying to use qiskit runtime to run my own version of VQE (the idea is to later run other algorithms). I understand that to use the IBMRuntimeService.upload_program()
function I need to store the program in some MY_PROGRAM.py file. What exactly does this file have to look like?
I have only found tutorials on running simple circuits (they don't have a classical optimisation part) or using pre-build Qiskit programs as 'hello-world' or 'QAOA'.