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

Implement tests for IonQ runtime provider #624

Closed
ryanhill1 opened this issue May 15, 2024 · 2 comments · Fixed by #646
Closed

Implement tests for IonQ runtime provider #624

ryanhill1 opened this issue May 15, 2024 · 2 comments · Fixed by #646
Assignees
Labels
api 📡 Requests to qBraid API testing 🧪 Updates, changes to unit tests and coverage unitaryhack Dedicated issue for UF open-source hackathon

Comments

@ryanhill1
Copy link
Member

We need to add test cases for all classes within the qbraid.runtime.ionq module.

To develop these tests, I highly recommend getting an IonQ access key so you can run actual jobs. You can do so simply by making an account at: https://ionq.com/quantum-cloud. Submitting jobs to their simulator device is free.

If you would rather not make an account, it would be possible to write these tests just using the IonQ API reference: https://docs.ionq.com/api-reference/v0.3/introduction.

Regardless of your approach, before merging, we will want these test cases to be runnable without an IonQ access key. The easiest way to achieve this is to use unittest.mock to replicate the responses from the IonQ server.

@ryanhill1 ryanhill1 added testing 🧪 Updates, changes to unit tests and coverage api 📡 Requests to qBraid API unitaryhack Dedicated issue for UF open-source hackathon labels May 15, 2024
@king-p3nguin
Copy link
Contributor

Hi, I would like to work on this issue for unitaryhack.

@ryanhill1
Copy link
Member Author

@king-p3nguin Awesome, go for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api 📡 Requests to qBraid API testing 🧪 Updates, changes to unit tests and coverage unitaryhack Dedicated issue for UF open-source hackathon
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants