Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

"Intro to QSharp" samples #422

Open
guenp opened this issue Sep 1, 2020 · 2 comments
Open

"Intro to QSharp" samples #422

guenp opened this issue Sep 1, 2020 · 2 comments

Comments

@guenp
Copy link
Contributor

guenp commented Sep 1, 2020

While the samples serve the purpose of demonstrating the usage of the language, it would be useful to have samples that explicitly demonstrate commonly used QSharp syntax, or even demonstrate more advanced syntax examples, without necessarily producing a useful algorithm. The goal is to make it easy for developers who learn by reading other code to pick up the language quickly.

Some examples:

  • within
  • Partial application
  • Adjoint, Controlled and is Adj + Ctl
  • ApplyToEach
  • Arrays, both 1D and 2D
  • Math, e.g. PowD

Based on contributor discussion.

@ycechungAI
Copy link
Contributor

I would like to work on this for hacktoberfest if I can get more info on the various examples
I am looking at the docs on Microsoft https://docs.microsoft.com/en-ca/azure/quantum/user-guide/language/programstructure/
so u want example programs for within, partial application, ajoint, controlled, applytoeach, ... etc
I kind of only understand arrays and math for now in Quantum

@msoeken msoeken added the Hacktoberfest Good issue for Hacktoberfest 2021 participants! label Sep 28, 2021
@msoeken
Copy link
Member

msoeken commented Sep 28, 2021

@ycechungAI Thanks for your interest in the issue and your comment. I think it's okay to pick a subset of examples from the issue description. With regard to the non-quantum and more math examples one could get inspiration from Rosetta Code.

@cgranade cgranade removed the Hacktoberfest Good issue for Hacktoberfest 2021 participants! label Sep 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants