forked from microsoft/Quantum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to QDK 0.12.20070124 (microsoft#383)
* Update QDK for .NET projects. (microsoft#382) * Use new M.Q.Synthesis namespace in samples (microsoft#373) * Use synthesis namespace in order-finding. * Small fixes. * Refactor reversible logic synthesis. * Update README of oracle synthesis with pointer to library implementations. * Update QDK version. * Apply suggestions from code review Co-authored-by: Chris Granade <[email protected]> * Links. * Simplify code. * Update QDK in other projects of same solution. * Update QDK for .NET projects. * Tests are covered in QuantumLibraries now. Co-authored-by: Chris Granade <[email protected]> Co-authored-by: Chris Granade <[email protected]>
- Loading branch information
Showing
39 changed files
with
122 additions
and
425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
namespace Microsoft.Quantum.Samples.ReversibleLogicSynthesis { | ||
open Microsoft.Quantum.Arrays; | ||
open Microsoft.Quantum.Intrinsic; | ||
|
||
@EntryPoint() | ||
operation RunProgram() : Unit { | ||
let perm = [0, 2, 3, 5, 7, 1, 4, 6]; | ||
let res = SimulatePermutation(perm); | ||
Message($"Does circuit realize permutation: {res}"); | ||
|
||
for (shift in IndexRange(perm)) { | ||
let measuredShift = FindHiddenShift(perm, shift); | ||
Message($"Applied shift = {shift} Measured shift: {measuredShift}"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.