forked from microsoft/QuantumKatas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tasks.qs
42 lines (31 loc) · 1.05 KB
/
Tasks.qs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
//////////////////////////////////////////////////////////////////
// This file is a back end for the tasks in the tutorial.
// We strongly recommend to use the Notebook version of the tutorial
// to enjoy the full experience.
//////////////////////////////////////////////////////////////////
namespace Quantum.Kata.VisualizationTools {
open Microsoft.Quantum.Canon;
open Microsoft.Quantum.Intrinsic;
operation LearnSingleQubitState (q : Qubit) : (Double, Double) {
// ...
return (0.0, 0.0);
}
operation LearnBasisStateAmplitudes (qs : Qubit[]) : (Double, Double) {
// ...
return (0.0, 0.0);
}
operation HighProbabilityBasisStates (qs : Qubit[]) : Int[] {
// ...
return [];
}
operation ReadMysteryOperationMatrix () : Double {
// ...
return 0.0;
}
operation ReadMysteryOperationTrace () : (Int, Int, Int) {
// ...
return (0, 0, 0);
}
}