documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Bug in serverless page

Open jyu00 opened this issue 1 year ago • 2 comments

URL to the relevant documentation

https://docs.quantum.ibm.com/guides/qiskit-serverless#run-a-qiskit-pattern-remotely-on-qiskit-serverless

Select all that apply

  • [ ] typo
  • [X] code bug
  • [ ] out-of-date content
  • [ ] broken link
  • [ ] other

Describe the fix.

The code example is missing a job = , e.g. it should be

# Run pattern remotely
pattern = serverless.get("My-Qiskit-Pattern")
job = pattern.run()
 
# Retrieve status, logs, results
job.status()
job.logs()
job.result()

Otherwise it'd fail with name job not found

jyu00 avatar Aug 14 '24 17:08 jyu00

cc @pandasa123, @jenglick

jyu00 avatar Aug 14 '24 18:08 jyu00

The docs are being overhauled in an open PR, and this code no longer exists as it was - if it still needs fixing in the docs being worked on in this PR, please let me know @pandasa123 @jyu00

abbycross avatar Aug 19 '24 17:08 abbycross