Git Product home page Git Product logo

Comments (3)

sezna avatar sezna commented on August 26, 2024 1

We may consider this for learn.microsoft.com.

from qsharp.

tcNickolas avatar tcNickolas commented on August 26, 2024

I don't recall ever seeing a guide like that, but that's an interesting idea!

There was an automatic OpenQASM to Q# converter at https://github.com/qsharp-community/qsharp-integrations, but it is so old, it probably doesn't work.

When I need code in multiple languages, I tend to write it in Q# first and then translate to other languages (well, to Qiskit). In this case, the main issues are:

  1. Local qubit allocation - Qiskit circuits need to have all qubits declared upfront, so counting auxiliary qubits is tricky.
  2. Endianness differences
  3. Mid-circuit measurements (and generally processing of measurement results, those look very different)

In the other direction, if Qiskit code uses libraries that are not available in Q# - either quantum or classical Python - that will be a massive problem for migration.

from qsharp.

Manvi-Agrawal avatar Manvi-Agrawal commented on August 26, 2024

Thanks @tcNickolas for providing more insights into Q# and Qiskit. I think the spirit of the question was that since Qiskit is widely used, people were asking if there is a cheatsheet/documentation to get started with Q# quickly if someone is familiar with Qiskit.

This is because Q# differs widely from Qiskit, Cirq and others, so people find it hard to try Q# because of learning curve. Personally speaking, I think Q# is good to learn afresh for someone familiar with programming. I found it more intuitive than Qiskit, some aspects being dynamic auxillary qubits handling, no need to have classical register for measurements, etc. But once I got used to Qiskit in university, there was a mental roadblock to adopt Q# again, had to dive in document and samples a bit :-)

from qsharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.