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

add nec demo #38

Merged
merged 4 commits into from
Oct 23, 2024
Merged

add nec demo #38

merged 4 commits into from
Oct 23, 2024

Conversation

rryoung98
Copy link
Member

This pull request introduces a new Jupyter notebook demonstrating how to use the qBraid SDK to run a QUBO problem on the NEC backend. The notebook includes markdown explanations and code cells to guide users through the process.

Key additions:

  • Introduction and Setup:

    • Added a markdown cell with an introduction to the qBraid SDK and its NEC integration. (qbraid_sdk/qbraid_runtime_nec.ipynb)
    • Included a code cell to install the necessary libraries using %pip install 'qbraid[runtime]' matplotlib pyqubo. (qbraid_sdk/qbraid_runtime_nec.ipynb)
  • Code Execution:

    • Added code cells to import the QbraidProvider and initialize it. (qbraid_sdk/qbraid_runtime_nec.ipynb)
    • Added code cells to retrieve the NEC device status and profile. (qbraid_sdk/qbraid_runtime_nec.ipynb)
    • Included a code cell to run a QUBO problem on the NEC backend and print the results. (qbraid_sdk/qbraid_runtime_nec.ipynb)

@rryoung98 rryoung98 added documentation Improvements or additions to documentation good first issue Good for newcomers qbraid-sdk Demos of the qBraid-SDK quantum-devices Quantum Devices integrations (lab or sdk) quantum-jobs Quantum Jobs integrations (lab or sdk) basic-usage Hello world level usage examples nec labels Oct 22, 2024
@rryoung98 rryoung98 self-assigned this Oct 22, 2024
@ryanhill1
Copy link
Member

ryanhill1 commented Oct 22, 2024

I'm pretty sure pyqubo is already included as a dependency "extra", so you should be able to do

 %pip install 'qbraid[pyqubo]' matplotlib

also qbraid[runtime] is not a valid extra anymore as of v0.8.

And we were planning on changing the run_input from model to qubo right? To avoid the redundancy related to the offset param? Probably would wanna solidify this before we publish any demo

qBraid/qBraid#800

@rryoung98
Copy link
Member Author

@ryanhill1 gotcha, yes, I will make those changes. I just wanted to have a place for the demo that is being used at CRS4.

@ryanhill1 ryanhill1 merged commit ce44f22 into main Oct 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
basic-usage Hello world level usage examples documentation Improvements or additions to documentation good first issue Good for newcomers nec qbraid-sdk Demos of the qBraid-SDK quantum-devices Quantum Devices integrations (lab or sdk) quantum-jobs Quantum Jobs integrations (lab or sdk)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants