Skip to main content

Questions tagged [quantum-gate]

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

225 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
1 answer

Can we initialize two arrays in two different qubits in a 2-qubit quantum circuit in IBMq?

Can we initialize two different arrays in two different qubits in a 2 qubit quantum circuit? I tried in IBMq but it showing error. So don't understand. from qiskit import QuantumRegister, ...
Arpita's user avatar
  • 25
0 votes
0 answers

Understanding notation regarding phase oracle continued

Since I am not able to comment on my post, I had to register an account and start a new post. Maybe my old post can be deleted, which is found : here I am new to quantum computing. I cannot get my ...
Simon's user avatar
  • 41
0 votes
1 answer

How does the V gate perform modular exponentiation?

The V gate is defined such that $V^2=X$: $$ V|0\rangle = \frac{1}{2}\begin{bmatrix} 1+i&1-i\\1-i&1+i\end{bmatrix}\begin{bmatrix}1\\0\end{bmatrix} = \frac{1+i}{2}|0\rangle + \frac{1-i}{2}|1\...
James's user avatar
  • 491
0 votes
0 answers

Half-wave plate (HWP) Hadamard gate implementation

The transformation of a qubit encoded in the polarization state from $|H\rangle$ to the state $|+\rangle$ is theoretically achievable with an HWP@π/8. However, I rarely see this solution in ...
Francesco Sisini's user avatar
0 votes
0 answers

Derivation of complexity for data encoding schemes

Could anyone help to derive the space-time complexities of the following different data encoding schemes ?
kevin's user avatar
  • 7
0 votes
0 answers

Pauli decomposed Hamiltonian as Diagonal U gate

While trying to implement a quantum circuit, I had to apply Hadamard gates to all qubits to achieve equal superposition. Done. The next operation is decomposing the Hamiltonian into a sum of tensor ...
Sup's user avatar
  • 231
0 votes
0 answers

Do I need a lab in order to test new ideas in designing quantum circuits

I would like to know how to test new ideas certainly on a circuit level. Do I require a lab? if so where can I find one I live in Houston. Does nt quantum eliminate the necessity of a lab and can I ...
Akram haidar's user avatar
0 votes
1 answer

how do i get the sequence of resulting data on the ibm quantum computers platform?

I have been working on the ibm quantum computer platform, but i have faced a problem with the output. My circuit contains Hadamard gates and entanglement gate between two qubits. I want to get the ...
Wiss's user avatar
  • 11
0 votes
0 answers

Conditions for Fault-tolerant QC to work better than not doing any EC (except the ideal decoder)

I've been exploring fault-tolerant QC with the simplest 7-qubit Steane code, yes I'm able to obtain all the predicted thresholds for various transversal gates and the EC gadgets. I then tried to ...
AndyLiuin's user avatar
  • 376
0 votes
0 answers

How to calculate weight matrix of Hamiltonian for logic gate?

How can we find the $J$ matrix representing a logic gate truth table? $$H=-\sum_i h_im_i-\sum_{i\lt j}J_{ij}m_im_j,$$ with $$J=\begin{bmatrix}0 & -1 & +2 \\-1 & 0 & +2\\+2 & +2 &...
WWW's user avatar
  • 1
0 votes
0 answers

How to use more than 3 classical registers in a single quantum circuit in Qiskit without getting error: not enough memory slots?

I'm trying to run a quantum circuit on qasm simulator which has more than 3 classical registers. It gives error when I try to execute it. The circuit looks ...
Devesh's user avatar
  • 63
0 votes
0 answers

How can the result of 1 million transformations on a qubit be verified to be correct?

I tried to do almost a million transformations on a qubit. I made a three qubit circuit with equal superposition of |0> and |1> (using Hadamard gate) and on the first qubit (qubit 0), added one ...
ArunG's user avatar
  • 1
0 votes
1 answer

Building Unitaries in TSP Quantum Phase Estimation Qiskit?

In the paper [] 2 published by IBM, they use Quantum Phase Estimation to solve the TSP problem. I don't understand the reason why they can decompose the diagonal ...
Nghia Nguyen Huu's user avatar
0 votes
0 answers

General Shape of the Hamiltonian for a Desired Unitary

Suppose that, the unitary(the gate) that we want to have is 8*8 matrix. Now I want to write the most general shape of the Hamiltonian for my unitary and I want to prove that the unitary can be ...
quest's user avatar
  • 626
0 votes
0 answers

Which book(s) us(es) the CNOT representation $e^{i\frac{\pi}{4}\left(I-Z\right)\otimes\left(I-X\right)}$?

I am looking for a book that uses the following representation of a CNOT , that so far I have only seen on Wikipedia. Because I'd like to properly cite the source, I am looking for a book that uses it:...
manuel459's user avatar
  • 221
0 votes
0 answers

Find unitary $U$ that transforms state $|\phi \rangle$ to state $|\phi' \rangle$ knowing those states differ only by relative phase

Given: $|\phi \rangle = \sum_n c_n |a_n \rangle $ $|\phi' \rangle = \sum_n c'_n |a_n \rangle $ such that $\forall n: c_n = c'_n \lor c_n = -c'_n $, where $|a_n \rangle $ is a canonical basis, and ...
Purple's user avatar
  • 101
0 votes
1 answer

How to use the csv dataset file imported as a dataframe in QSVM Qiskit code

I am trying to run QSVM qiskit code with my custom dataset which I am loading as a pandas dataframe. When I execute the part below with my own dataset in the place of breast_cancer, it gives error &...
user14924's user avatar
  • 317
0 votes
0 answers

Quantum Haar Wavelet Transform

I am working on understanding the quantum haar wavelet transform and trying to understand how it actually do the dimension reduction mathematically. A lot of people suggested me to read this paper : ...
Manu's user avatar
  • 493
0 votes
0 answers

Why are the angle coding of the samples cascaded and only use so few qubits

I want to ask about the angle coding. Is the angle coding that Abbas said really like this? There are two samples and four features. Why does she only use two qubits? Instead of four. And the sample ...
Ren-Xin Zhao's user avatar
0 votes
0 answers

How do you build the modified Toffoli gate using only local unitary and CNOT operations?

How do you build a circuit for a modified Toffoli gate using only local unitary operations and CNOT operations? The two-qubit unitary operation is given by: $\text{diag}\{1, 1, 1, e^{i\phi}\}$.
NewtoQC's user avatar
  • 39
0 votes
0 answers

Is there a simple quantum gate that shows off the power of Quantum interference?

I'm trying to build a deep understanding of where the power of quantum computing comes from when compared to probabilistic computing. A naive observation might be that probabilistic computing would be ...
Frederik Baetens's user avatar
0 votes
0 answers

After a photon passes through the phase shifter, does it gain the geometric phase or dynamical phase?

In Quantum Mechanics, the phase can be divided into geometric phase and dynamical phase. In mach-zehnder interferometer, after the photon passes through the phase shifter, what kind of phase does it ...
narip's user avatar
  • 2,999
0 votes
0 answers

Folded MPS state with Mid-circuit measurement

Among some documents I found to make a MPS state on quantum circuit, I can make it with stepped arrangement of unitary operators. ...
gojo's user avatar
  • 29
-1 votes
0 answers

Relation between Quantum Gates and their corresponding polynomial

I read this paper which states that we can establish relation between quantum gates and their polynomials. I used this to find the polynomial corresponding to $R_z$ gate and found it $4\theta x/\pi$ ...
Alinsa's user avatar
  • 1
-1 votes
1 answer

What is Gate time of single and multi qubit?

How much quantum gate need time do computation in superconducting quantum computer. For all types of single and multi qubit gate.
Jagadeesh Pitchai pazham's user avatar

1 2 3 4