Questions tagged [quantum-gate]

For questions regarding usage, performance, implementation, application or theory related to quantum gates.

Filter by
Sorted by
Tagged with
0
votes
1answer
58 views

How the simulator work?

Recently I focused on how to simulate in classical computer, and I found Qiskit offers qasmsimulator and statevector simulator. ...
1
vote
2answers
51 views

Is there anything Quantikz can do that Tikz cannot do?

I am learning how to draw quantum circuits. I was checking the options available and I could see that Tikz and Quantikz are suitable for making circuits diagrams but I want to know if there are some ...
2
votes
3answers
205 views

How can we construct a square root of NOT gate in Qiskit and IBMQ circuit composer using universal gates?

I have tried it with decomposing controlled S then conjugating with H gate. But I want to construct it using a minimum number of gates.
1
vote
1answer
20 views

Applying a gate to all line qubits without explicitly listing them in Cirq

Say we have a custom gate CG, defined by a unitary matrix U, and line qubits qubits in Cirq. ...
1
vote
1answer
26 views

Visualizing custom gates in Cirq

I'm trying to visualize a custom gate in Cirq. I have through this page, which briefly mentions how to create custom gates in Cirq. However, I'm getting errors when trying to visualize it. My current ...
1
vote
2answers
59 views

How can a half-wave plate affect the position qubit and not the polarization qubit of a photon?

I recently was watching these 2 videos on Coursera which show how to build a simple quantum computer that can implement the simplest case of the Deutsch-Jozsa algorithm (which uses only 2 qubits). ...
0
votes
1answer
37 views

Question About How Qiskit Reset Gate Affects Other Entangled Qubits

I am trying to understand how the reset gate in Qiskit affects qubits its entangled with. Consider the following circuit with qubits $q_0$ and $q_1$: Where circuit240 takes $|0\rangle$ to $a|0\rangle ...
2
votes
1answer
63 views

Quantum circuit for $\frac{1}{\sqrt{3}}(|00\rangle+|01\rangle+|10\rangle)$

How to prepare a Quantum circuit for $\frac{1}{\sqrt{3}}(|00\rangle+|01\rangle+|10\rangle)$ state starting from $|00\rangle$ state. I have no clue how to do it. I tried with controlled hadamard gate ...
2
votes
1answer
48 views

Is it possible to create a gate in Q# that is dictated by a matrix?

When observing the Hadamard gate it is simply a transformation matrix. I am wondering if there is functionality to hard code an arbitrary transformation matrix and its family members up till $m \times ...
3
votes
1answer
52 views

Expectation value of an operator error: Composition is not defined over operators of different dimensions,

I am trying to calculate the expectation value of a customized operator on two similar but differently constructed states $\phi = \phi_2 =\frac{1}{\sqrt{2}}\left( |001⟩ + |011⟩\right)$ which consist ...
2
votes
1answer
245 views

Quantum Circuit To Compute Any Inner Product

I'm currently reading the paper Classification with Quantum Neural Networks on Near Term Processors It shows a method to determine the following quantity: Where U is a unitary operator acting on $|z,...
2
votes
1answer
52 views

How do you embed a POVM matrix in a Unitary?

In QuantumKatas Measurement Task 2.3 - Peres-Wooter's Game, we are given 3 states A,B and C. We construct a POVM of these states. But how do we convert that POVM into a Unitary that we can apply. ...
3
votes
1answer
47 views

Grover's Algorithm on a Database with more than 50% matching entries

The Setup for Grover's Algorithm is the following: Given an oracle $f_O^{\pm}$ representing a Query on a Database with total $N$ entries $N$ of which $k$ are matching. Grover's Algorithm is used to ...
0
votes
1answer
24 views

Interconnection clarification?

I just want to clear what seems to be a bit confusing to me with quantum gates and their corresponding output. below are 3 scenarios implementing two hadamard gates two hadamard gates on one qubit ...
2
votes
3answers
121 views

Pauli I in eoh procedure doesn't become a global phase gate in qiskit evolution_instruction method. Possible consequences

If one has two qubits in arbitrary stats and wishes to apply a controlled version of some global phase gate $P(\varphi) = \begin{pmatrix} e^{i\varphi} & 0 \\ 0 & e^{i\varphi} \end{pmatrix}$ ...
2
votes
2answers
54 views

Quantum operations as sparse matrices

What are examples of quantum operators or evolutions of quantum states that can be modeled as sparse matrices?
0
votes
1answer
32 views

What are some general concepts of how a classical computer would interface with a quantum computer?

Very general question so I'm not looking for an exact answer. I just want a basic description of certain ways it can be done and then if possible the names of those ways, so that I can look them up ...
1
vote
1answer
48 views

A question about how does the single qubit gate simulated in simulator?

I have found the procedure of simulation process as this picture : Image reference. So in the low-level compilers, all single-qubit gates are approximated by the universal gate set (CNOT, H, T, S). ...
1
vote
2answers
65 views

How can I code a Conditional phase shift transform?

I am interested in implementing a operation in Q#. The operation should follow the algorithm below: When $A=0$ it is quite easy to see that the algorithm states if the qubitt is in nullspace apply a ...
3
votes
1answer
27 views

Prove expressions for visibilities $\operatorname{Tr}(\rho_a^2\rho_b^2), \operatorname{Tr}[(\rho_a \rho_b)^2]$ in terms of SWAP operations

Given two states $\rho_a$ and $\rho_b$, and knowing that the SWAP gate swaps two qubits, how can one prove that visibilities $v_1=Tr[\rho_a^2 \rho_b^2] = Tr[S_{AB} S_{BC} S_{CD} \rho_a \otimes \rho_a \...
1
vote
0answers
26 views

How to calculate destabilizer group of toric and other codes

Some papers use the "destabilizer group" for more efficient simulations; see for example (page 3): https://www.scottaaronson.com/showcase2/report/ted-yoder.pdf "In addition to ...
0
votes
1answer
34 views

Question About Measuring an Operator For Quantum Neural Network Paper

I'm currently reading the paper: https://arxiv.org/pdf/1802.06002.pdf I'm a little bit stuck on the step of how to determine the following quantity: Where U is a unitary operator acting on $|z,1\...
2
votes
0answers
19 views

What are the practical limitations of complementing quantum computations with memristors?

Considering the current state of research into quantum memristors, and the advantages/disadvantages of quantum and memristor driven computing architectures: Quantum Memristors Quantum Memristor ...
2
votes
2answers
176 views

Question about DIY Quantum Computer Prototype

I recently came across these 2 videos on Coursera which show how to build a simple quantum computer that can implement the simplest case of the Deutsch-Jozsa algorithm (which uses only 2 qubits). ...
4
votes
2answers
90 views

What are generators for a “real” Clifford group?

I work with stabilizer codes using the real version of Pauli matrices: $X=((0,1),(1,0))$, $Z=((1,0),(0,-1))$, $Y=XZ$ (not $\imath XZ$). I know the encoders for these codes lie in the Clifford group ...
0
votes
1answer
50 views

Are quantum operations reversible?

If We perform some unitary operations on a Quantum State $|A\rangle$ after which it becomes$|A'\rangle$. Then if we perform the inverse of all those unitary operations on the state $|A'\rangle$ in ...
2
votes
2answers
36 views

How do I encode a classical vector into the input qubits?

Does anyone know how to encode a classical vector into a quantum state? For instance, I would like to encoder a classical vector $(0, 0.1, 0.4, 0.9)$ into 2 qubits by adding some quantum gates on 2 $|...
1
vote
2answers
112 views

Is there a quantum operation to change a phase $e^{(0.q_0 q_1 q_2 q_3)}$ into $e^{(0.q_1 q_2 q_3)}$?

Given a set of four qubits, say $q_{0},q_{1},q_{2},q_{3}$ which represent a $4$-bit binary number with $q_{0}$ as the MSB. After applying QFT on these qubits the phase of $q_{0}$using the concept of ...
1
vote
1answer
339 views

import error :No module named 'qiskit_aqua'

I have an error when I use Quantum SVM kernel algorithm from Qiskit aqua. This is my code section with imports: ...
-1
votes
1answer
56 views

Difference between $Rz$ and $R1$ gate [closed]

You are given an operation that implements a single-qubit unitary transformation: either the Rz gate or the R1 gate. The operation will have Adjoint and Controlled variants defined. Your task is to ...
4
votes
2answers
123 views

How to find a circuit for the roots of QFT?

After reading about using quantum gates instead of ancillas, it asserts that every quantum circuit has a square root. Theoretically, they do, but is there a practical method to generate the quantum ...
1
vote
1answer
23 views

What is the shortest sequence of decomposition a given single-qubit unitary gate

Given a single-qubit unitary matrix, can we find the shortest sequence of Clifford + T gates that correspond to that unitary? According to Fast and efficient exact synthesis of single qubit unitaries ...
5
votes
1answer
86 views

Why is a different convention used for the $Rz$ implementation on IBM Q?

A $z$ rotation gate is defined as $$ Rz(\theta)=\mathrm{e}^{-i\frac{\theta}{2}Z}= \begin{pmatrix} \mathrm{e}^{-i\frac{\theta}{2}} & 0 \\ 0 & \mathrm{e}^{i\frac{\theta}{2}} \end{pmatrix}, $$ ...
1
vote
1answer
23 views

How to append an Instruction to a QuantumCircuit with variable length of QuantumRegisters as qargs?

I think it is a bug but I'm not really sure. Basically, what I'm trying to do is the following: I have an Oracle Instruction which I want to append to my QuantumCircuit, looks as follows: ...
-2
votes
0answers
26 views

How to solve these questions? [duplicate]

Link: v.ht/qhash. Here are some of the best questions available on the net, if anyone could code them in Q#, then it would be great. By solving you will gain experience on qubits, quantum gates, ...
1
vote
0answers
48 views

Screening procedure in an iterative qubit coupled cluster (iQCC) ansatz

The paper Iterative Qubit Coupled Cluster approach with efficient screening of generators describes a new screening procedure for generators of the QCC ansatz. How does one get from defining the ...
0
votes
0answers
63 views

Is it possible to express u1(λ) through the gates rx, ry, rz while maintaining the phase? In Qiskit for example

Is it possible to express gate u1(λ) through the gates rx, ry, rz while maintaining the phase? Both in principle and in practice (in Qiskit for example)? The single gate rz(λ) is not suitable, because ...
3
votes
2answers
50 views

Example of a quantum algorithm better than its classical counterpart which involves only $1$ qubit?

I was reading over the proof of the Deutsch-Jozsa algorithm, which in its simplest case, involves at least 2 qubits. Is there an example of a quantum algorithm that is better than it's classical ...
4
votes
3answers
167 views

How to approximate $Rx$, $Ry$ and $Rz$ gates?

Quantum Inspire is a quantum computing platform provided by QuTech. It consists of two real quantum processors - Starmon-5 and Spin-2. Whereas it is possible to use rotation gates $Rx$, $Ry$ and $Rz$ ...
7
votes
2answers
177 views

Show that these two expressions for the oracle transformation are equivalent

Suppose $x \in \{0,1\}^n$. The standard way to make a query is with an oracle $O_x$ that given an input $|i,b \rangle $ returns $|i,b \oplus x_i \rangle$. Via the phase kick-back trick, this can be ...
1
vote
1answer
67 views

Efficient implementation of exponential of projector

If I have an $n$ qubit system and a projector $P$ such as $P_0 = \left|0\right>^{\otimes n}\left<0\right|^{\otimes n}$ (as an example) on those qubits, is there an efficient way to implement the ...
0
votes
1answer
52 views

How to decompose unitary quantum gate in current simulator or emulator?

I have a question about how to decompose a unitary quantum gate in a currently existing simulator or emulator. I have read some papers about SK algorithm and other algorithms which aim to decompose ...
2
votes
2answers
50 views

A question about a real programmable quantum computer

In the theory of universal quantum gates,I have known a common universal gate set is the Clifford + T gate set, which is composed of the CNOT, H, S and T gates. Then there is a concept called "...
2
votes
3answers
52 views

Show that a $CZ$ gate can be implemented using a $CNOT$ gate and Hadamard gates

Show that a $CZ$ gate can be implemented using a $CNOT$ gate and Hadamard gates and write down the corresponding circuit. Recall from Quantum Information Theory that $Z=HXH$. As $CNOT$ is a ...
2
votes
0answers
24 views

Question about the practical use of super dense coding in information transmission [duplicate]

Question about the practical use of super dense coding in information transmission: We know that by using super dense coding it is possible to transmit 2n classical bits transmitting n qubits, ...
2
votes
3answers
169 views

How to spot the matrix representation of the quantum NOT operation

Applying the above construction to AND we get the map $(x1,x2,y) \rightarrow (x1,x2,y⊕(x1∧x2))$ for $x1,x2,y \in \{0,1\}$. The unitaryoperator which implements this is then simply the map $|x1〉|x2〉|y&...
2
votes
1answer
75 views

Do all physical architectures for quantum computers use the same universal gate sets?

Now I have understood that physical implementation of quantum computer need a universal quantum gate set like Clifford+T to realize any unitary quantum gate. However, I don't know if it is all the ...
1
vote
2answers
46 views

Is it possible to create a quantum computer with a double-slit or Stern-Gerlach apparatus?

If we choose double-slit, can we put multiple "slits" and create calculation for just one algorithm (problem, solution...)? Not general purpose quantum CPU, just for one. Same question for Stern-...
2
votes
1answer
26 views

The effect of available information on random quantum channels

This question is about the effect of available information on random quantum channels. Suppose there are two black box devices. Device 1. We have a black box device with a single qubit in it. Once ...

1
2 3 4 5
12