Skip to content

Commit

Permalink
Fixing a few more...
Browse files Browse the repository at this point in the history
  • Loading branch information
swernli committed Nov 27, 2019
1 parent f357c5a commit 5b6be24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BasicGates/Tasks.qs
Expand Up @@ -86,15 +86,15 @@ namespace Quantum.Kata.BasicGates {
// This is the first operation in this kata that is not self-adjoint,
// i.e., applying it for a second time does not return the qubit to the original state.
operation AmplitudeChange (alpha : Double, q : Qubit) : Unit is Adj+Ctl {
// ...
Ry(alpha + alpha, q);
}


// Task 1.5. Phase flip
// Input: A qubit in state |ψ⟩ = α |0⟩ + β |1⟩.
// Goal: Change the qubit state to α |0⟩ + iβ |1⟩ (flip the phase of |1⟩ component of the superposition).
operation PhaseFlip (q : Qubit) : Unit is Adj+Ctl {
// ...
S(q);
}


Expand Down

0 comments on commit 5b6be24

Please sign in to comment.