Comments (3)
We may consider this for learn.microsoft.com.
from qsharp.
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:
- Local qubit allocation - Qiskit circuits need to have all qubits declared upfront, so counting auxiliary qubits is tricky.
- Endianness differences
- 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.
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)
- Kata playground: Remove profile selection option from tutorial exercises, HOT 1
- Build exception 'Could not load file or assembly' when building on Arm64 (Mac M3) HOT 1
- Kata playground: switching to tutorial and back to samples, disables "Run" button in the sample.
- Kata playground: Base profile selection for unsupported code shows the error for all kata exercises
- Add quantum phase estimation to the libraries HOT 1
- Add infrastructure for validating stand-alone Python files in samples
- Imports from Core that are not in the prelude do not generate auto-imports when selected from the completion list
- Callables from same file don't show up in the completions list
- Refactor completions generation to be more readable
- LaTeX rendering of nice numbers isn't always correct
- Generated documentation should include 'Std' way of referring items in the standard library
- IntelliSense error highlighting on one issue blocked by presence of another, in a different operation or later in the same operation
- Runtime error message and call stack printed as one line with \n HOT 1
- Histogram in VS Code is not cancelled by pressing Escape when prompted for the number of shots
- Update signed math library to match unstable API more closely
- Histograms in VS Code do not render until close to done running HOT 1
- Update `rustc_hash` and come to terms with the consequences
- [Playground] Keep track of playground state
- [Question] MathJax previewer for kata HOT 2
- Detailed results for estimates widget all show "ERROR: Rendered has not been set"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qsharp.