3

I have a quantum circuit in qiskit. Now I want to know is there any way that I can transform it to a braket circuit in AWS? I want to use error mitigation in AWS. I have the circuit in qiskit. But as error mitigation in AWS only accept braket circuit I have to somehow transform the qiskit circuit to braket circuit. How I can solve this problem?

2 Answers2

3

I'm not sure if this actually solves your problem but Amazon Braket recently released a Qiskit provider that you can install by pip install qiskit-braket-provider. This tool let you to run your Qiskit QuantumCircuit by using Braket Python SDK:

from qiskit import QuantumCircuit
from qiskit_braket_provider import BraketLocalBackend

circ = QuantumCircuit()

build your Qiskit circuit here

...

local_simulator = BraketLocalBackend() task = local_simulator.run(circ, shots=1000)

Take a look at this link for more details: Introducing the Qiskit provider for Amazon Braket.

SimoneGasperini
  • 1,644
  • 1
  • 3
  • 18
3

You can transpile circuits from qiskit to braket using the qBraid SDK. For example:

from qbraid import circuit_wrapper
from qiskit import QuantumCircuit

qiskit_circuit = QuantumCircuit()

...

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

See:

Note: Right now the qBraid SDK is only available on lab.qbraid.com, but will be open-sourced very soon!

ryanhill1
  • 2,668
  • 1
  • 11
  • 39