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

[Question] Samples CI, location and redundancy #1709

Closed
Manvi-Agrawal opened this issue Jul 9, 2024 · 2 comments · Fixed by #1797
Closed

[Question] Samples CI, location and redundancy #1709

Manvi-Agrawal opened this issue Jul 9, 2024 · 2 comments · Fixed by #1797
Labels
enhancement New feature or request question Further information is requested

Comments

@Manvi-Agrawal
Copy link
Contributor

Manvi-Agrawal commented Jul 9, 2024

Edited because of sample validation changes: Investigate duplicate check in javascript that check samples in samples.mjs list?

Generic questions : Samples Location

  • It might be worth publishing language samples to the same/separate website, if possible, for greater discovery.

  • If option 2 isnt feasible, can we move samples not in samples.mjs list to a new repo? I liked classic QDK samples because they were in a separate repo. @tcNickolas has told me previously that monolith helps to simplify the dependencies. I highly doubt that somebody would likely visit this massive codebase to see these curated samples. Currently, they serve little purpose for both for Q# compiler team and people onboarding to Q#. Maybe add new samples repo as a submodule here if folks think it might be useful, although I know git submodules are a bit annoying.

Specific questions

  • : Is QuantumHelloWorld.qs sample needed when we have Getting started(aka minimal) and superposition sample?
    Also, this is not in samples.mjs list. Interestingly, it does pop up on samples website which seems to have been updates a long time back.
    image

  • Is RandomBit.qs sample needed when code is very similar to superposition sample? Currently, this is in samples list and might be okay to have this duplicate to reiterate that random number can be generated using superposition.

@sezna
Copy link
Contributor

sezna commented Aug 13, 2024

This should be resolved when #1797 goes in

@sezna sezna added question Further information is requested and removed needs triage labels Aug 15, 2024
github-merge-queue bot pushed a commit that referenced this issue Aug 26, 2024
… to use structs (#1797)

This PR:
- Updates katas to use structs instead of newtypes
- Performs some minor katas formatting updates (consistency on spacing;
removing trailing whitespace; etc)
- Checks our samples for lint warnings or errors in the CI
- updates our samples to use the latest style from Q# 1.7
  - imports instead of opens
  - implicit entrypoint via `Main`
  - implicit namespaces
- Adds stricter lint configs to projects within this repo

Closes #1709 

Thanks @ScottCarda-MS and @swernli for collaborating on this PR!

---------

Co-authored-by: Scott Carda <[email protected]>
Co-authored-by: Scott Carda <[email protected]>
Co-authored-by: Stefan J. Wernli <[email protected]>
Co-authored-by: Mariia Mykhailova <[email protected]>
@Manvi-Agrawal Manvi-Agrawal changed the title [Question] Samples CI checks and redundancy [Question] Samples redundancy Sep 25, 2024
@Manvi-Agrawal Manvi-Agrawal changed the title [Question] Samples redundancy [Question] Samples location and redundancy Sep 25, 2024
@Manvi-Agrawal
Copy link
Contributor Author

Created separate issues for better triaging since #1797 addresssed a part of this issue and I am unable to reopen this issue

@Manvi-Agrawal Manvi-Agrawal changed the title [Question] Samples location and redundancy [Question] Samples CI, location and redundancy Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
2 participants