All Questions
Tagged with quirk quantum-gate
14 questions
0
votes
1
answer
93
views
Multi-qubit rotation using Quirk
I was wondering, how can one perform a multi-qubit rotation in Quirk?
For example, if I want to simulate the magic-state distillation protocol, I need e.g. a $(IIZZZ)_{\pi/8}$ rotation of 5 qubits. Is ...
2
votes
1
answer
688
views
Not understanding gates being generated by MCX in "recursion" mode
I was curious about the various ways of generating code for MCX when there are multiple controls. I saw that qiskit provided multiple algorithms for generating code, depending on the number of ...
1
vote
1
answer
205
views
Manually calculating quantum circuit with custom gate
I am trying to calculate the state of this Quirk circuit by hand:
where U is a custom gate with 2x2 matrix:
From what I've read, I should be able to calculate the resultant amplitudes as:
(U⊗I⊗I).(...
1
vote
1
answer
263
views
How to implement *nested* Grover search (in Quirk)?
$\newcommand{\ket}[1]{|#1 \rangle}$
$\newcommand{\bra}[1]{\langle #1 |}$
PS: I suppose this question could also ask "How to implement $2 \ket{s}\bra{s} - I$ for any (identifiable) $\ket{s} \in \...
1
vote
1
answer
339
views
Implementation of quantum phase estimation in Quirk
after reading the chapter of QPE (Quantum phase estimation) in Nielsen, I wanted to try an implementation in Quirk. My idea was to apply the T-gate, from which I know the following relation $T|1\...
1
vote
1
answer
391
views
Question about Grover algorithm implementation in the Quirk simulator
I want to implement the Grover iteration instead of the multi-control qubit implemented as in this picture:
I want to implement them like in this example of five qubits:
I mean how can I decompose ...
5
votes
0
answers
162
views
Exact functions of a single-iteration Grover Search Algorithm's operators
I'm doing a practice assignment where I'm asked to identify specific features of the Grover Search Algorithm's second operator (picture in post, further on "$Us$"), which mirrors the system relative ...
1
vote
1
answer
105
views
Explanation of the function of the circuit
I once experimented with the tool "quirk" and came to a gate, whose function I can not properly tap into. I'm working in the circuit with 4 bits, the last bit is negated, so from 0 to 1. On all 4 bits ...
2
votes
1
answer
275
views
How to implement a $\frac{\theta}{2}$ rotation from $\theta$ rotation?
Is there a way to create a rotation gate which has half the angle of some implementable gate?
I am looking to implement a gate on Quirk which allows for standard time-dependent rotations
$$R_x(\...
8
votes
3
answers
2k
views
Is there any method of adding two operators in a circuit?
I am trying to reconstruct the time evolution of a Hamiltonian on the quantum computing simulator, quirk. Ideally I would like to generalise this to any simulator. The unitary matrix is
$$U(t)=e^{-...
1
vote
1
answer
290
views
Creating a time dependent custom gate in Quirk
I have created a $16\times 16$ unitary operator using a Hamiltonian by finding its exponential
$$U=\exp(-iH\delta t)$$
If I set $\delta t=1$ then I can take this matrix and input it into quirk using ...
2
votes
1
answer
1k
views
Building a matrix corresponding to the teleportation circuit
I'm trying to build the matrix that corresponds to this quantum teleportation circuit, but it never works when I test it in the quirk simulator, I tried finding the matrix corresponding to every part ...
22
votes
3
answers
4k
views
Toffoli gate as FANOUT
I was searching for examples of quantum circuits to exercise with Q# programming and I stumbled on this circuit:
From: Examples of Quantum Circuit Diagrams
- Michal Charemza
During my introductory ...
7
votes
1
answer
86
views
How to avoid error when applying certain combinations of degree of freedom rotations using a quantum circuit?
When applying each of the six degree of freedom rotations (or certain combinations of them) in an SO(4) using quantum gates, the results I expected are produced. For example, the following circuit in ...