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

Fidelity of Quantum Algorithms on Different Hardware Using Braket #98

Open
contra-bit opened this issue Aug 22, 2024 · 1 comment
Open
Labels
documentation Improvements or additions to documentation

Comments

@contra-bit
Copy link

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:

  • Explain in detail how to use Braket to run the same quantum algorithm on different hardware platforms (e.g., different quantum devices or simulators).
  • Provide guidance on how to measure and compare the fidelity or accuracy of the results obtained from these different platforms. This could include details on relevant metrics, such as state fidelity, gate fidelity, or other relevant performance measures.
  • Demonstrate examples of how to interpret and compare the fidelity/accuracy results across different hardware platforms.

Optimizing Algorithm Mapping to Hardware:

  • Provide step-by-step instructions on how to obtain the circuit transpiler for a specific device, either from AWS or other hardware vendors.
@contra-bit contra-bit added the documentation Improvements or additions to documentation label Aug 22, 2024
@speller26
Copy link
Member

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants