CS6620-S21 / Asynchronous-quantum-job-submission-framework

0 stars 5 forks source link

Add /submit endpoint #4

Open husky-parul opened 3 years ago

husky-parul commented 3 years ago

Is your feature request related to a problem? Please describe. N/A

Describe the solution you'd like Add /submit endpoint to be able to:

Describe alternatives you've considered N/A

Additional context Qiskit API https://qiskit.org/documentation/index.html JSOn Schemas: https://github.com/Qiskit/ibm-quantum-schemas/tree/main/schemas

rsquare2010 commented 3 years ago

Handle errors like this and propagate them to the user:

Traceback (most recent call last): File "ibm_api.py", line 33, in mappedcircuit = transpile(qc, backend=backend) File "/Users/rahul/.local/share/virtualenvs/Asynchronous-quantum-job-submission-framew-dJka3f6/lib/python3.8/site-packages/qiskit/compiler/transpile.py", line 240, in transpile _check_circuits_coupling_map(circuits, transpileargs, backend) File "/Users/rahul/.local/share/virtualenvs/Asynchronous-quantum-job-submission-framew-dJka3f6/lib/python3.8/site-packages/qiskit/compiler/transpile.py", line 277, in _check_circuits_coupling_map raise TranspilerError('Number of qubits ({}) '.format(num_qubits) + qiskit.transpiler.exceptions.TranspilerError: 'Number of qubits (2) in circuit86 is greater than maximum (1) in the coupling_map'

This happens when the QC contains 2 qubits but the backend(ibmq-armonk) supports only one

husky-parul commented 3 years ago

While there might be other errors we would want to propagate to the user, this one not. There is a plan to implement a scheduler that will take care of this, submitting jobs with a sufficient amount of qubits stated in the request.