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

100 Коммитов

Автор SHA1 Сообщение Дата
Jim Cristofono 25261c7cb1 Convert QEC_BitFlipCode to Jupyter Notebook format (#134) 2019-07-01 17:43:01 -07:00
Dan Tran 58606af545 Add Graph Coloring Kata (#82)
This adds a Kata exploring using Grover's search to solve the constraint satisfaction problem of graph coloring - coloring nodes of a graph in such a way that no adjacent nodes share the same color.

This project was done as part of UW CSE 490 Q as its final project.
The authors are Dan Tran, Daniel Snitkovskiy, and Frederik Schmitt.

Co-authored-by: Mariia Mykhailova <mamykhai@microsoft.com>
2019-07-01 15:23:17 -07:00
Jack Hyder 976a9177cd Converted SolveSATWithGrover to Jupyter notebook format (#136)
This commit also includes several cleanup changes:

* remove unused CounterSimulator
* use ApplyWith instead of deprecated With
* reduce the number of tests for SAT oracle to speed up testing
2019-07-01 13:51:19 -07:00
Mariia Mykhailova d71d4f7d4f
Several improvements to kata Notebooks (#133)
* Fix issue #128 (test name in Teleportation).
* Remove mentions of unit tests from CHSH and GHZ.
* Add reading material to GroversAlgorithm.
* Fix the description of task 1.2 in CHSH to reflect both strategies.
2019-06-24 13:46:16 -07:00
bettinaheim 0211cdfe4c
Beheim/superdense coding (#130)
* using a user defined type Message in the superdense coding kata

* resetting qubits upon decoding

* fixing a typo!

* adding missing comma

* Update SuperdenseCoding/Tests.qs

Co-Authored-By: Chris Granade <cgranade@gmail.com>

* Update SuperdenseCoding/Tests.qs

Co-Authored-By: Chris Granade <cgranade@gmail.com>

* renaming to ProtocollMessage

* Update SuperdenseCoding/Tasks.qs

Co-Authored-By: Mariia Mykhailova <michaylova@gmail.com>

* Update SuperdenseCoding/Tasks.qs

Co-Authored-By: Mariia Mykhailova <michaylova@gmail.com>

* Update SuperdenseCoding/Tasks.qs

Co-Authored-By: Mariia Mykhailova <michaylova@gmail.com>

* giving the syntax for named item access

* updating task description

* adapting another description

* Update SuperdenseCoding/Tasks.qs

Co-Authored-By: Mariia Mykhailova <michaylova@gmail.com>

* Mariia's feedback

* forgot to adapt notebook

* Fix Notebook tasks to work with ProtocolMessage data type, add explanations

* Refer to earlier type definition in Tasks.qs
2019-06-23 21:11:12 -07:00
Darío Hereñú 4428dee909 Format port in Docker instuctions using monospaced font (#132) 2019-06-22 08:41:03 -07:00
Jack Hyder 1ce273d587 Convert MagicSquareGame kata to Jupyter notebook format (#131) 2019-06-21 17:52:13 -07:00
Jack Hyder faaa1c255e Convert GroversAlgorithm kata to Jupyter notebook format (#129) 2019-06-18 22:46:50 -07:00
Ganessh Kumar 42c774aae9 Convert parameter names `α` to `alpha` in Jupyter Notebook code cells (#127)
This closes #124.
2019-06-06 11:01:48 -07:00
Jim Cristofono 0f1b349efc Convert JointMeasurements kata to Jupyter notebook format (#125) 2019-06-05 15:31:17 -07:00
Jim Cristofono 93efafeaa5 Convert SuperdenseCoding kata to Jupyter notebook format (#126) 2019-06-04 19:25:59 -07:00
Mariia Mykhailova c06303d0e0
Remove warnings from tasks not compatible with QDK 0.6 (#123) 2019-05-31 18:42:16 -07:00
Jim Cristofono 4030d36bec Convert Teleportation Kata to Jupyter Notebook format (#121)
Also includes a small fix to task headers in BasicGates kata
2019-05-31 14:34:03 -07:00
Andres Paz a42a9fc8bb
Updating to 0.7.1905.3109 (#122)
* Updating to 0.7.1905.3109

* Updating description on how to update IQ#
2019-05-31 14:10:48 -07:00
Jack Hyder 42f04ccb07 Convert the GHZ game kata to Jupyter Notebook format (#120) 2019-05-29 14:20:07 -07:00
Andres Paz 789ad28a6d Add IQSHARP_HOSTING_ENV to Dockerfile (#119)
This allows to know when the notebook is running in Docker (e.g. on binder)
2019-05-29 11:07:52 -07:00
Mariia Mykhailova 67da851f56
Update kata lists to include entanglement games (#117) 2019-05-28 17:31:22 -07:00
Jack Hyder ca55added7 Convert the CHSH game kata to Notebook format (#115) 2019-05-23 15:53:01 -07:00
Mariia Mykhailova 4266e52eba
Let the kata notebooks override all attempted tasks (#116)
In https://github.com/microsoft/QuantumKatas/pull/115 we observed that a kata notebook only overrides the task that is currently tested, and uses stubs from the project for the rest of the tasks. This prevents us from implementing tasks which require two related operations be implemented at once, or ones which rely on previously completed tasks.

This change adds tracking of previously attempted tasks and overriding them together with the currently attempted task.
2019-05-23 08:35:07 -07:00
Sarah Marshall 4bdf143b8e Add Mermin-Peres magic square game kata (#87)
Co-authored-by: Justin Sievers <justinmsievers@gmail.com>
Co-authored-by: Johnny Wang <aptx.hdc@gmail.com>
2019-05-22 09:22:40 -07:00
Mariia Mykhailova 2ba5fe2d2b
Polish the Kata Notebooks (#114)
* Add reference materials from README.md files to the respective Notebooks.
* Improve formatting.
2019-05-21 11:55:04 -07:00
Mariia Mykhailova 3bbcac1b0a
Another batch of fixes for QDK 0.6 (#112)
* Replace Primitive with Intrinsic namespace
* Replace deprecated library operations
* Update links to documentation
2019-05-09 13:08:45 -07:00
bettinaheim ccd488a68c Bug fix for phase estimation kata (#113)
This fixed a bug in the logic condition in task 2.2 introduced in https://github.com/microsoft/QuantumKatas/pull/111.
2019-05-08 15:04:29 -07:00
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