-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 69 | Nested programs interface #85
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM like first approach!
Some questions:
- How to concatenate different programs in a workflow? Any use example?
- How to invoke programs from cloud? I mean, the private/hide version of a program to allow users run a program without get the source code of it. Any thoughts or idea to implement it?
- In the example, Job can be named like program, right? Because inside of a program we can run several runtime jobs, for example
- In the section not implemented yet ProgramStorageBackend, what is the meaning of Backend? can we use another naming to avoid confusion?
I think workflows will be inside as tasks and program is just an entrypoint to execution # program.py
@run_qiskit_remote()
def step_1():
...
@run_qiskit_remote()
def step_2():
...
@run_qiskit_remote()
def combine_results_step2(step_1_res, step_2_res):
...
with serverless:
result = get(combine_results_step2(step_1(...), step_2(...)))
later on You will still be able to call
Yes, I'm planning to update docs a little bit in a following PR. Good suggestion on naming and examples!
Good suggestion, I will remote Backend from name |
Summary
Nested programs interface
Now we provide a way to execute async nested programs in a following manner
where
script.py
has our program code of interest for exampleMoreover we provide interface for program storage backend that can be implemented for example for local storage
Details and comments
Co-authored with @Tansito
Closes #69