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 about the construction of complex circuits using elementary quantum gates.
4
votes
Hadamard + Hadamard + Ry: Results in the IBM Q Experience don't match the matrix results
Here are the gates:
\begin{equation}
H = \frac{1}{\sqrt{2}}\begin{pmatrix} 1 & 1 \\1&-1 \end{pmatrix}
\qquad
R_y(\theta) = \begin{pmatrix} \cos(\theta/2) & -\sin(\theta/2) \\\sin(\theta/2) & \cos(\t …
1
vote
Controlled-U gate on IBMQ
In addition to Martin Vesely's answer:
Here I want to share an alternative way of implementing ccu1(t, q[0], q[1], q[2]) gate, where $t$ is some phase. It can be shown that ccu1 gate can be decompose …
3
votes
Simplification of "rotation swapping" circuit
If $U_1 = U_2$, then $U_1 U_2^{\dagger} = I$. So let's add to the first circuit the inverse/dagger of the second one:
This whole thing should be an identity. Note that, for this, we should prove th …
2
votes
Quantum Circuit explaination
Because $CNOT = I\otimes H \cdot CZ \cdot I\otimes H$ as was mentioned here, and because $CZ(q_1, q_2) = CZ(q_2, q_1)$, we can rewrite the circuit in this way (by adding Hadamards as needed):
The lin …
30
votes
Circuit construction for Hamiltonian simulation
An approach for Hamiltonian simulation:
Any Hermitian (Hamiltonian) matrix $H$ can be decomposed by the sum of Pauli products with real coefficients (see this thread). An example of 3 qubit Hamiltonia …
8
votes
Circuit construction for Hamiltonian simulation
Controlled version of $e^{iHt}$:
Often in the algorithms (e.g. in HHL or PEA), we want to construct not the circuit for Hamiltonian simulation $e^{iHt}$, but the controlled version of it. For this, we …
8
votes
Procedures and intuition for designing simple quantum circuits?
Here are the actions for the given transformation on the computational basis states:
$$|000\rangle \rightarrow |000\rangle \qquad |001\rangle \rightarrow |010\rangle \qquad |010\rangle \rightarrow |0 …
4
votes
Accepted
Generate a 3-qubit SWAP unitary in terms of elementary gates
By using similar ideas from this answer I have found this circuit:
Thought process:
The unitary is a permutation matrix that doesn't change bitstrings except $U |100\rangle \rightarrow |011\rangle$ a …
3
votes
How to implement the CCH gate in quantum computers available in clouds?
A brute force solution :). You can also obtain CCH via qiskit's basic gates with help of get_controlled_circuit method.
from qiskit import *
from qiskit.aqua.utils.controlled_circuit import get_contr …
5
votes
Accepted
Representation of rotation operators $e^{-i\theta(I-Z_1\otimes Z_2 \otimes Z_3)}$ about arbi...
We can't implement $e^{iZ_1 \otimes Z_2 \otimes Z_3 \theta}$ with three separate rotations. In other words:
$$e^{iZ_1 \otimes Z_2 \otimes Z_3 \theta} \ne e^{i Z_1 \theta} \otimes e^{i Z_2 \theta} \oti …
3
votes
Accepted
Show that a $CZ$ gate can be implemented using a $CNOT$ gate and Hadamard gates
Here is the CNOT gate:
$$CNOT = |0\rangle \langle 0|\otimes I + |1\rangle \langle 1| \otimes X$$
So:
$$(I \otimes H) CNOT (I \otimes H) = |0\rangle \langle 0|\otimes HH + |1\rangle \langle 1| \otim …