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

qBraid-SDK Qiskit algo--> AWS device demo #11

Open
ryanhill1 opened this issue Jul 20, 2023 · 0 comments
Open

qBraid-SDK Qiskit algo--> AWS device demo #11

ryanhill1 opened this issue Jul 20, 2023 · 0 comments
Labels
algorithms Implements/demos specific quantum algorithms qbraid-sdk Demos of the qBraid-SDK qiskit Uses Qiskit in some way transpiler Uses qBraid-SDK transpiler

Comments

@ryanhill1
Copy link
Member

@pranavkakhandiki

We would like to create a new demo notebook that shows how you can write an algorithm in Qiskit and execute it on an AWS device using the qBraid-SDK.

The qiskit-braket-provider tutorials directory contains some notebooks that are of a similar idea. I would say you could work directly off of one of these, but a key factor in this issue is that many of the built-in qiskit.algorithms libraries use custom gates which are not supported by the qBraid-SDK transpiler. So the best approach could be to find an algorithm that is of a small enough size / scope that it can re-written using qiskit standard gates.

Once you have a qiskit algorithm written, the first litmus test is to attempt to transpile it to braket (see sdk transpiler docs), e.g.

from qbraid import circuit_wrapper
from qiskit import QuantumCircuit()

qiskit_circuit = QuantumCircuit(...)
braket_circuit = circuit_wrapper(qiskit_circuit).transpile.("braket")

if that works, then you are almost done. The last step is to use the device wrapper to submit the algo circuit as a quantum job to an AWS device e.g. Braket SV1 (see sdk devices docs). If you have your own AWS credentials, you can do this all locally. If not, you can use the qBraid-SDK environment on qBraid Lab with Quantum Jobs enabled. See install environment docs and quantum jobs docs / sdk quantum jobs demo notebook

@ryanhill1 ryanhill1 added qbraid-sdk Demos of the qBraid-SDK qiskit Uses Qiskit in some way transpiler Uses qBraid-SDK transpiler algorithms Implements/demos specific quantum algorithms labels Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
algorithms Implements/demos specific quantum algorithms qbraid-sdk Demos of the qBraid-SDK qiskit Uses Qiskit in some way transpiler Uses qBraid-SDK transpiler
Projects
None yet
Development

No branches or pull requests

1 participant