forked from microsoft/QuantumKatas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tasks.qs
32 lines (25 loc) · 996 Bytes
/
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
// 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.MultiQubitGates {
open Microsoft.Quantum.Intrinsic;
operation CompoundGate (qs : Qubit[]) : Unit is Adj {
// ...
}
operation BellState (qs : Qubit[]) : Unit is Adj {
// ...
}
operation QubitSwap (qs : Qubit[], index1 : Int, index2 : Int) : Unit is Adj {
// ...
}
operation ControlledRotation (qs : Qubit[], theta : Double) : Unit is Adj {
// ...
}
operation MultiControls (controls : Qubit[], target : Qubit, controlBits : Bool[]) : Unit is Adj {
// ...
}
}