Skip to content
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

tag source of primitives as quantum-serverless #1244

Closed
wants to merge 1 commit into from

Conversation

psschwei
Copy link
Collaborator

Summary

Fixes #1127

Details and comments

Adds the environmental variables CUSTOM_HEADER_ENV_VAR and QE_PROVIDER_HEADER_ENV_VAR to the Ray head/worker pods, each of which has the value QUANTUM_SERVERLESS_CLIENT_APP_HEADER.

@akihikokuroda
Copy link
Collaborator

@psschwei Would you hold this PR? The header can be used to include the middleware job ID in the primitive request. https://github.com/Qiskit-Extensions/quantum-serverless/blob/7e60d0e50b6fe2b03be9f8481fc051893ea3c22e/gateway/api/ray.py#L100

@psschwei psschwei added the on-hold On hold due to any reason label Mar 12, 2024
@akihikokuroda
Copy link
Collaborator

There is a bug in qiskit_ibm_runtime now. But when it is fixed, the Jobs request

https://api.quantum.ibm.com/runtime/jobs

will have the middleware job id like following by #1232 change.

X-Qx-Client-Application: qiskit-version-2/qiskit_ibm_runtime-0.18.0,qiskit_terra-0.45.2/qiskit_ibm_runtime~estimator.py/middleware_job_id/704456bb-2055-4366-9490-b210896c2db8

@psschwei
Copy link
Collaborator Author

@akihikokuroda should we close this PR then?

@akihikokuroda
Copy link
Collaborator

Yes, please. If you don't mind. Thanks!

@psschwei psschwei closed this Mar 12, 2024
@psschwei psschwei deleted the runtime-envvar branch March 12, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on-hold On hold due to any reason
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set env variable for jobs to track source of qiskit primitives executions
2 participants