forked from microsoft/QuantumKatas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTasks.qs
55 lines (39 loc) · 1.32 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
43
44
45
46
47
48
49
50
51
52
53
54
55
// 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.SingleQubitGates {
open Microsoft.Quantum.Intrinsic;
open Microsoft.Quantum.Math;
// Exercise 1.
operation ApplyY (q : Qubit) : Unit is Adj+Ctl {
// ...
}
// Exercise 2.
operation GlobalPhaseI (q : Qubit) : Unit is Adj+Ctl {
// ...
}
// Exercise 3.
operation SignFlipOnZero (q : Qubit) : Unit is Adj+Ctl {
// ...
}
// Exercise 4.
operation PrepareMinus (q : Qubit) : Unit is Adj+Ctl {
// ...
}
// Exercise 5.
operation ThreeQuatersPiPhase (q : Qubit) : Unit is Adj+Ctl {
// ...
}
// Exercise 6.
operation PrepareRotatedState (alpha : Double, beta : Double, q : Qubit) : Unit is Adj+Ctl {
// ...
}
// Exercise 7.
operation PrepareArbitraryState (alpha : Double, beta : Double, theta : Double, q : Qubit) : Unit is Adj+Ctl {
// ...
}
}