Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
DO NOT use this tag. Use more specific tags such as [linear-algebra] instead.
1
vote
How do I apply a matrix to a ket state?
To add onto KAJ226's answer, you can see that $|00\rangle, |01\rangle, |10\rangle, |11\rangle$ form the computational basis. You can also see that since there is a $1$ in only one coefficient of the v …
5
votes
1
answer
1k
views
How can you decompose Grover's diffusion operator into gates?
I know how Grover's diffusion operator works ($U_s = 2|s\rangle\langle s|-I$) with the inversion around the mean. However, I want to implement it in simpler gates, to use the algorithm. How can I do t …
8
votes
Accepted
How can you decompose Grover's diffusion operator into gates?
Grover's diffusion operator can be implemented with H, X and a controlled Z gate. I will show this mathematically. Since $|s\rangle = |+\rangle^{\otimes n} $ :
$$
U_s = 2|s\rangle\langle s|-I = H^{\ot …
1
vote
1
answer
871
views
Effect of Pauli X gate on minus state using bloch sphere
As I understood, the X gate flips the state around : $X(|0\rangle) = |1\rangle$. It can also be visualized with a $\pi$ rotation around the $x$ axis in the Bloch sphere. I have no problem with that.
…
2
votes
1
answer
104
views
How to correctly define $U_\omega$ for Grover's search algorithm
I am working on Grover's algorithm and I am trying to implement the algorithm. I am following the Microsoft quantum katas and I finished and did everything correctly. I am trying to implement the algo …