New answers tagged circuit-construction
3
votes
Accepted
Qiskit: How to implement this function?
The easiest way to do this is to use the classical function compiler to build a boolean function and synthesize a quantum circuit object from that function. For example, using your boolean logic ...
0
votes
Oracle for amplitude addition
You can do this using linear combination of unitaries (LCU) technique. It is described in the paper you mentioned (section 7.3). More specifically, see example 7.12
5
votes
Accepted
Depth circuit optimization for 6-qubits GHZ state
If you have nearest neighbor ("grid") connectivity, you can prepare an $n$-qubit GHZ with depth $O(\log(n))$ (with the best savings when $n$ is a power of $2$):
...
3
votes
Depth circuit optimization for 6-qubits GHZ state
How about that:
It has depth of 4 instead of 6
2
votes
What is the average amount of gates needed to implement a random Clifford gate?
It's $O(n^2)$ operations from various constructive decompositions (such as in "Hadamard-free circuits expose the structure of the Clifford group
").
You can prove from information theoretic ...
3
votes
Accepted
Construct a two-qubit quantum gate with given action using the gates ${CNOT, H, T}$
The $T$ gate applies a phase of $e^{\pi i / 4}$ to $|1\rangle$, i.e., it has the following effect: $T(\alpha|0\rangle + \beta|1\rangle) = \alpha|0\rangle + e^{\pi i / 4}\beta|1\rangle$. We want this ...
1
vote
Accepted
Qiskit: QAOAnsatz circuit with custom Hamiltonian
Assume that $U$ is given as a quantum circuit:
U = QuantumCircuit(num_qubits)
Then to get the state vector $\left| b \right>$ we can use ...
0
votes
There exists an efficient gate that swaps values of different superposition kets?
If you know $\alpha_1$ and $\beta_1$, this is easy. Let $x=\alpha_1\oplus\beta_1$ (bit-wise addition modulo 2). Let $X_x$ apply bit flips on the sites where the bits of $x$ are 1, and identity on the ...
Top 50 recent answers are included
Related Tags
circuit-construction × 532quantum-gate × 208
qiskit × 108
programming × 81
algorithm × 73
quantum-state × 70
quantum-circuit × 47
gate-synthesis × 33
ibm-q-experience × 30
measurement × 22
hamiltonian-simulation × 20
entanglement × 19
cirq × 19
textbook-and-exercises × 18
grovers-algorithm × 18
quantum-fourier-transform × 16
universal-gates × 15
mathematics × 14
simulation × 14
matrix-representation × 14
nielsen-and-chuang × 12
complexity-theory × 11
unitarity × 11
hadamard × 11
oracles × 11