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 |
For questions regarding usage, performance, implementation, application or theory related to quantum gates.
5
votes
Accepted
How to say "apply CNOT on qubit 1 controlled by qubit 2"?
The most common convention is to refer to qbits by the index of their significance, with the least-significant qbit having index $0$. This is cribbed from binary, where the significance index is the s …
5
votes
Accepted
What is the matrix for the operator that implements a function to tell the parity of its arg...
All quantum operators must be unitary. Unitary means the conjugate-transpose of the operator is its inverse. In your case:
$UU^{\dagger} = \begin{bmatrix}
1 & 0 & 0 & 0\\
0 & 1 & 1 & 0\\
0 & 0 & 0 & …
2
votes
Matrix representation of a measurement
These are called observables, which are unitary hermitian matrices whose eigenvectors are the possible outcomes of the measurement. For example, the observable of the standard computational basis is t …
3
votes
Can you use Rz to flip from $|+\rangle$ to $|-\rangle$?
If you use $\theta = \pi$, you get the following:
$$
Rz(\pi)\begin{bmatrix} \frac{1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} \end{bmatrix} =
\begin{bmatrix}
e^{-i \pi/2} & 0 \\
0 & e^{i \pi/2}
\end{bmatrix}
…
3
votes
4
answers
250
views
Can you use Rz to flip from $|+\rangle$ to $|-\rangle$?
Here's the Rz matrix:
$$
Rz(\theta) =
\begin{bmatrix}
e^{-i\theta/2} & 0 \\
0 & e^{i\theta/2}
\end{bmatrix}
$$
As I understand it, Rz rotates around the Z axis on the Bloch sphere. Since $|+\rangle$ …
4
votes
What circuit or operation corresponds to the tensor product?
The tensor product is not a gate, but rather a way for us as humans to model the behavior of a quantum system. Whenever we're using multiple qbits, we can look at them in two ways: in their product st …
2
votes
Multiple random coin flips without measurements
You say it's a problem that when using measurements your circuit is not reversible, but generating a truly random number is an inherently non-reversible operation. Consider that for an operation to be …
36
votes
5
answers
12k
views
How to derive the CNOT matrix for a 3-qubit system where the control & target qubits are not...
In a three-qubit system, it's easy to derive the CNOT operator when the control & target qubits are adjacent in significance - you just tensor the 2-bit CNOT operator with the identity matrix in the u …
4
votes
Accepted
Building a matrix corresponding to the teleportation circuit
Since the quantum teleportation circuit has three qbits, the matrix at each step is 8x8 and thus has 64 elements; this is pretty clunky to type out in its entirety, so I'll just walk you through step …