Skip to content

Add backend requirements to program __str__#51

Merged
rathishcholarajan merged 17 commits intoQiskit:mainfrom
kt474:program-str-backend
Jan 12, 2022
Merged

Add backend requirements to program __str__#51
rathishcholarajan merged 17 commits intoQiskit:mainfrom
kt474:program-str-backend

Conversation

@kt474
Copy link
Copy Markdown
Contributor

@kt474 kt474 commented Dec 8, 2021

Summary

Details and comments

Fixes Qiskit/qiskit-ibm-provider#198

Was only able to find input_allowed and min_number_qubits as properties of backend_requirements - are there others?

Copy link
Copy Markdown
Member

@rathishcholarajan rathishcholarajan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Could you paste the output of printing a sample program by running this code?
  2. Could we add some tests?

Comment thread qiskit_ibm_runtime/runtime_program.py Outdated
@kt474
Copy link
Copy Markdown
Contributor Author

kt474 commented Jan 5, 2022

service.pprint_programs(detailed=True)

Example outputs

qiskit-test:
  Name: qiskit-test
  Description: Qiskit test program
  Creation date: 2021-10-10T18:48:27Z
  Update date: 2021-10-10T18:48:27Z
  Max execution time: 600
  Backend requirements:
    none
  Input parameters:
    none
  Interim results:
    none
  Returns:
    none
qasm3-runner:
  Name: qasm3-runner
  Description: A runtime program that takes one or more circuits, compiles them, converts them to OpenQASM3, and executes them. The input can also be one or more OpenQASM3 strings. Note that only one circuit/string can be passed if using a simulator, and this program can only run on a backend that supports OpenQASM3. This program is currently in beta mode and will likely be updated frequently.
  Creation date: 2021-11-01T17:57:48.28061Z
  Update date: 2021-12-10T23:33:14.828172Z
  Max execution time: 14400
  Backend requirements:
    Supported features: qasm3
  Input parameters:
    Properties:
    ... 

Comment thread qiskit_ibm_runtime/runtime_program.py
Comment thread qiskit_ibm_runtime/runtime_program.py Outdated
Comment thread qiskit_ibm_runtime/runtime_program.py
Comment thread qiskit_ibm_runtime/runtime_program.py Outdated
Copy link
Copy Markdown
Member

@rathishcholarajan rathishcholarajan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rathishcholarajan rathishcholarajan merged commit 11b37ea into Qiskit:main Jan 12, 2022
@kt474 kt474 deleted the program-str-backend branch January 12, 2022 14:52
@rathishcholarajan rathishcholarajan added the Changelog: API Change Include in the Changed section of the changelog label Feb 24, 2022
blakejohnson pushed a commit to blakejohnson/qiskit-ibm-runtime that referenced this pull request May 26, 2023
ihincks added a commit to ihincks/qiskit-ibm-runtime that referenced this pull request Oct 29, 2025
* Update default image to 4ce80ae8e02f204ea4c9131defd983a07260599d

* use a different tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: API Change Include in the Changed section of the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add backend requirements to program __str__

2 participants