amazon-braket / Braket.jl

Experimental Julia implementation of the Amazon Braket SDK
Apache License 2.0
99 stars 7 forks source link

Fidelity of Quantum Algorithms on Different Hardware Using Braket #98

Open contra-bit opened 3 months ago

contra-bit commented 3 months ago

What did you find confusing? Please describe. I found the documentation on using Braket to compare the fidelity or more generally the accuracy of quantum algorithms on different hardware to be unclear.

Further, I am trying to understand how improvements in mapping the algorithms onto the device provided by AWS Simulators or other hardware vendors can be optimized. For this I would like to also know how to obtain the transpiled Circuit for a specific device, but I didn't understand the process or the necessary steps involved.

This is what I want to achieve:

from mqt import qmap
from qiskit import QuantumCircuit
from qiskit.providers.fake_provider import FakeLondon

circ = QuantumCircuit(3)
circ.h(0)
circ.cx(0, 1)
circ.cx(0, 2)

circ_mapped, results = qmap.compile(circ, arch=FakeLondon())

Describe how documentation can be improved The documentation could be improved by providing a detailed guide on the following:

Comparing Fidelity/Accuracy of Quantum Algorithms:

Optimizing Algorithm Mapping to Hardware:

speller26 commented 1 month ago

Thanks for this suggestion; running on different devices is explained in the README of the Python SDK, and explored in more detail in the examples. As for mapping to hardware, we don't have any built-in transpilers in our libraries; this is done automatically on the service, but you can also map qubits locally, for example with the Qiskit Braket Provider.

There are multiple approaches for measuring and comparing fidelity/accuracy of results; please feel free to open an issue in our examples for introducing a demonstration, or in the Python SDK, as an overall Braket feature (rather than one exclusive to the Braket.jl).