Граф коммитов

77 Коммитов

Автор SHA1 Сообщение Дата
bettinaheim 7519eb3f74 Updating Katas to QDK 0.6 (#111)
* Update the katas to use QDK 0.6.1905.301.
* Add mechanism to verify that the reference solutions actually solve all tasks of a Notebook correctly.

Co-Authored-By: Bettina Heim <34236215+bettinaheim@users.noreply.github.com>
Co-Authored-By: Andres Paz <anpaz@microsoft.com>
2019-05-03 16:46:04 -07:00
Andres Paz df491c9844 Add explicit package version to M.Q.Katas in Notebooks (#109)
This adds explicit package version to Kata Notebooks, so that an update of the NuGet packages (with potentially breaking changes) does not get picked up immediately.
2019-05-02 17:46:15 -07:00
Mariia Mykhailova 3a72faa325
Add warning on IQ# version to the Notebooks (#107) 2019-05-01 22:22:13 -07:00
mkhsu 2e2fbff2d4 Fix typo in task 1.6 of BasicGates.ipynb (#104)
|1⟩ should change to exp^i*alpha |1⟩ instead of exp^i*alpha |0⟩.
2019-04-30 11:18:10 -07:00
Mariia Mykhailova e1476aa12e
SolveSATWithGrover: Clarify the solution for task 2.2 (#98)
This change addresses issue #92:

* describe the intent behind the task and the logic of the reference solution,
* add an extra exit condition to prevent infinite loop when trying increasing numbers of iterations.
2019-04-29 16:48:52 -07:00
Mariia Mykhailova c92a76f712
Update READMEs to reflect Kata Notebooks (#103)
* Add links to Notebook versions to the katas that have them
* Add index.ipynb with the list of migrated katas
* Reorganize root readme
2019-04-29 16:35:17 -07:00
Mariia Mykhailova 0aea1925ec
DeutschJozsaAlgorithm: finish conversion to Notebook format (#102) 2019-04-29 15:44:41 -07:00
Mariia Mykhailova 6ed6b1c49a
Convert the Measurements kata to Notebook format (#101)
This change includes the fix for https://github.com/Microsoft/QuantumKatas/issues/68 (count the measurements used to solve the task).
2019-04-25 15:57:30 -07:00
Mariia Mykhailova 8975fe9d92 Add infrastructure for Katas as Jupyter Notebooks (#96)
* Add Microsoft.Quantum.Katas project that contains the infrastructure necessary for representing Katas in Jupyter Notebook format.
* Add Common project that contains the CounterSimulator for the Katas.
* Add Docker image to run Notebooks on Binder.
* Convert BasicGates, Superposition and part of DeutschJozsaAlgorithm katas to Notebook format.
* Update QDK to 0.5.1904.1302 version.

Co-authored-by: Andres Paz <anpaz@microsoft.com>
2019-04-24 23:51:20 -07:00
Don Marshall 840b1df649 Fix broken link in GroversAlgorithm kata README (#100)
This is to add the src directory to the DatabaseSearch sample code.
https://github.com/Microsoft/Quantum/tree/master/Samples/src/DatabaseSearch
2019-04-23 22:58:26 -07:00
Martin Roetteler fab66b78b2 Measurements: add the rest of the tasks from the contest (#97)
Three-qubit state discrimination and Peres/Wooters game problems offered in Microsoft Q# Coding Contest - Winter 2019 (https://codeforces.com/contest/1116)
2019-04-20 10:16:25 -07:00
Martin Roetteler 6400cb0573 UnitaryPatterns: add the rest of the tasks from the contest (#95)
TIE fighter, Creeper, and Hessenberg matrices problems offered in Microsoft Q# Coding Contest - Winter 2019 (https://codeforces.com/contest/1116)
2019-04-17 15:49:01 -07:00
Sarah Marshall b68e90888a Add GHZ Game kata (#86)
Co-authored-by: Justin Sievers <justinmsievers@gmail.com>
Co-authored-by: Johnny Wang <aptx.hdc@gmail.com>
2019-04-16 22:58:35 -07:00
Mariia Mykhailova 963ed6dfc0
Fix warnings QS3302-3303 (deprecated || and &&) (#93) 2019-04-15 19:02:38 -07:00
Sarah Marshall 9128297c00 Add CHSH Game kata (#85)
Based on https://github.com/Microsoft/Quantum/tree/master/Samples/src/CHSHGame

Co-authored-by: Justin Sievers <justinmsievers@gmail.com>
Co-authored-by: Johnny Wang <aptx.hdc@gmail.com>
2019-04-09 00:14:33 -07:00
Mariia Mykhailova 72451eda7f
Update link to Q# style guide (#91) 2019-04-08 10:30:15 -07:00
Andres Paz 1c2e26528a Updating QDK version to 0.5.1903.2703 (#90) 2019-03-28 15:56:51 -07:00
Mariia Mykhailova e7f6d6f433
Update QDK version to 0.5.1902.2802 (#81) 2019-03-16 18:29:55 -07:00
Mariia Mykhailova c56031175b
UnitaryPatterns: add tasks from the contest (#80)
These tasks have been offered in Microsoft Q# Coding Contest - Winter 2019 (https://codeforces.com/contest/1116)
2019-03-08 13:27:28 -08:00
Mariia Mykhailova d2b3f911a4
Add "Solving SAT problems using Grover's search algorithm" kata (#79) 2019-03-08 13:01:19 -08:00
Mariia Mykhailova acc3a74760
Superposition: Add tasks from the contest (#78)
These tasks have been featured in Microsoft Q# Coding Contest - Winter 2019 (https://codeforces.com/contest/1116)
2019-03-05 23:12:40 -08:00
Charles Taylor cce4f36160 Superposition: add iterative solution to WState_Arbitrary task (#76) 2019-03-04 16:39:10 -08:00
Mariia Mykhailova efdadb1a18
UnitaryPatterns: add tasks from the warmup round (#73)
* UnitaryPatterns: add tasks from the warmup round

These tasks have been featured in Microsoft Q# Coding Contest - Winter 2019 - Warmup (https://codeforces.com/contest/1115)

* Fix https://github.com/Microsoft/QuantumKatas/issues/75
2019-02-26 17:08:43 -08:00
Mariia Mykhailova eab72f80dd
Fix row/column order and threshold in DumpUnitary (#70)
* Fix row/column order in the unitary written to DumpUnitary.txt
* Update threshold for defining zero/non-zero elements of the pattern to match the handling in UnitaryPatterns kata
2019-02-23 18:28:56 -08:00
Mariia Mykhailova 94b8fbef0b
Create "Unitary Patterns" kata and tools for working with it (#69) 2019-02-22 08:57:04 -08:00
Mariia Mykhailova 476ba89c2f
JointMeasurements: Fix output description in task 4 (#64) 2019-02-20 20:02:17 -08:00
Mariia Mykhailova af5761fa7d
PhaseEstimation: Make qubit counting non-static (#65)
Test for AssertIsEigenstate run in parallel with the Q#-only tests. This means that member variables of CounterSimulator which store current and max numbers of allocated qubits need to be non-static, otherwise qubits allocated in different tests can be counted together.
2019-02-19 09:05:52 -08:00
Mariia Mykhailova 430092da08
Improve workspace for VS Code (#63)
* Hide several more types of files
* Arrange the katas in order of increasing difficulty
2019-02-14 16:50:09 -08:00
Mariia Mykhailova 3895fd6b45
Start phase estimation kata (#61)
This kata contains a section on quantum phase estimation and a start of a section on iterative phase estimation. Iterative PE is a large topic and will require more tasks to cover adequately, but I wanted to share at least the beginnings of this kata.
2019-02-13 17:50:54 -08:00
Mariia Mykhailova e6dfc19ea3
Update CI to use dotnet build instead of vsbuild (#62) 2019-02-13 11:33:38 -08:00
Mariia Mykhailova 9770b073f7
Update QDK version to 0.4.1901.3104 (#60)
Also includes a couple of presentation fixes for Simon's algorithm kata
2019-02-04 11:07:31 -08:00
Philip Garrison ee348c877c Use ASCII for letter variable names (#58)
The script r and x didn't render on my machine, so I'm suggesting they become ASCII.
2019-01-13 16:10:50 -08:00
Philip Garrison 4f54f90603 Fix indentation in Superdense Coding (#57)
Task 2 was indented an extra 4 spaces.
2019-01-10 17:26:18 -08:00
Philip Garrison 543a7909b2 Add new, simpler solution to Measurement task 1.12 (#56) 2019-01-09 23:42:11 -08:00
Mariia Mykhailova 2341a1f62d
Several small improvements in presentation (#53)
* Add detailed hint to the first task in Measurements
* Add explanations to several solutions in JointMeasurements and marked task complexity
2019-01-09 11:06:46 -08:00
Mariia Mykhailova e1b283e82d
Replace sum ⊕ with tensor product ⊗ in BasicGates kata (#52) 2019-01-07 09:46:22 -08:00
Korben Rusek a8e429563e Clarify the math in Measurements task 2.1 (#51) 2018-12-14 12:21:23 -08:00
Mariia Mykhailova 57923c8324
Add CI step to check Unicode symbols used for bra and ket (#50)
* Add a check for using proper bra and ket symbols
* Add an (optional to use) script to replace symbols automatically
2018-12-01 22:19:35 -08:00
Mariia Mykhailova 34b15b7d26
Improve several readme files (#48)
* Add link to teleport demo
* Remove en-us from links to Q# documentation
2018-11-27 16:32:52 -08:00
Mariia Mykhailova 2acfd2f54e
Take advantage of new 0.3 language features (#49)
* Allocating one qubit and qubit tuples
* Ternary operator
* Iterate over a range with step 2
2018-11-27 16:32:23 -08:00
pritimay 06bee0ae2e Remove link for deleted video about Simon's algorithm (#47)
Ignoring stuck CI build, since the change is limited to a Markdown file
2018-11-06 20:33:47 -08:00
Mariia Mykhailova 5ff23a0066
Update QDK to version 0.3.1811.203 (#46) 2018-11-05 14:20:45 -08:00
Mariia Mykhailova f850d8dc11
Update quick reference to Q# 0.3 (#45) 2018-11-01 10:39:14 -07:00
kadora b9046c6f4b Fix reference links changed in 0.3 release. (#44) 2018-10-30 08:57:50 -07:00
Mariia Mykhailova 63e4e52a48
Migrate the katas to QDK 0.3 and .NET Core 2.1 (#43) 2018-10-30 08:48:56 -07:00
lmrazorea 5486ea21ba Refactor duplicate code in Grover's algorithm kata. (#39) 2018-10-26 15:51:32 -07:00
Ricardo Espinoza 13705d3361 Adding new tasks to Superposition kata. (#40) 2018-10-23 14:33:34 -07:00
Mariia Mykhailova bbc8750b07
Joint Measurements kata (#35) 2018-10-22 13:03:00 -07:00
Ria Cheruvu be1422a2dd Add link to another tutorial on Grover's Algorithm (#36) 2018-10-20 18:50:17 -07:00
Mariia Mykhailova a704ab42d6
Add Grover's Algorithm kata to the lists (#34) 2018-10-17 08:46:03 -07:00