Tharrmashastha V
  • Member for 2 years, 2 months
  • Last seen more than a month ago
  • New Delhi, Delhi, India
How can I run a set of circuits, each of which has 100 shots?
Accepted answer
1 votes

In your code, circuits is an array of array of quantum circuits and each element of circuits is an array of quantum circuits. In the code, you are using a for loop to run each element of the circuits ...

View answer
Correct way of expressing a measurement in a different computational basis
2 votes

Say you have two bases $B_1$ and $B_2$. Let $U$ be the unitary that transforms the orthonormal basis vectors in $B_1$ to the basis vectors in $B_2$. So, it is obvious that $U^{\dagger}$ will be the ...

View answer
Grover's algorithm for finding 6/8 states
0 votes

If you recall from the analysis of Grover's algorithm, if the success probability of obtaining an item of interest is $\sin^2(\theta)$ just before a Grover iteration, then just after one iteration of ...

View answer
What are the possible gates that I can use to vary input states before CNOT?
0 votes

Contrary to what you have mentioned in the question, when you use a $u_3$ gate, Qiskit does not break it up into multiple gates. In fact $u_3$ gate is one of the basis gates for all Qiskit backends ...

View answer
Is there a way to entangle to a dirty qubit?
Accepted answer
2 votes

Short Answer: There is no universal gate that can entangle the output state for any given ? and ??? operators in the circuit given in the question. Long Answer: Say you have the entangle state $|\psi\...

View answer
How does a generic controlled-U operation work?
Accepted answer
3 votes

We know that operators are applied on qubits. But sometimes it does not make sense to ask the state on which we apply an operator, say $U$. For instance, take the two-qubit entangled state $|\psi\...

View answer
Measuring in the computational basis in the single qubit gate QFT implementation
Accepted answer
1 votes

Measuring in the 'Computational Basis' always means to measure in the $\{|0\rangle,|1\rangle\}^n$ basis for $n$ qubits. As for your second question, I feel that you misinterpreted the author. It is ...

View answer
How to apply a operator to qubit system on the basis of current state of system?
Accepted answer
1 votes

I assume that you have a qubit register $q$ and given that the state of $q$ is $|\psi_i\rangle$ you want to apply $U_i$ to $q$ for $i=0,1,2$. If this is what you wish to do, then unfortunately if the ...

View answer
How to construct Control-Z with square root of swap?
0 votes

To add to the circuit by @Craig, the reason why papers tend to mention that some gate is obtainable by $\sqrt{swap}$ upto a few single qubit gates is because the set that contains the $\sqrt{swap}$ ...

View answer
How do I check what is wrong in my full-adder code?
Accepted answer
2 votes

If I am correct, I suppose you are talking about the Qiskit Challenge 2020. A possible reason why your circuit is being graded wrong is because the question asks you to construct the circuit for full ...

View answer
$S^{\dagger}$ gate in Q#
Accepted answer
1 votes

It is correct. Since you have $R_1(\theta) = \begin{bmatrix}1 & 0\\ 0 & e^{i\theta}\end{bmatrix}$ and $R_z(\theta) = \begin{bmatrix}e^{-i\theta/2} & 0\\ 0 & e^{i\theta/2}\end{bmatrix}$ ...

View answer
Given a matrix, how do I proceed with the quantum phase estimation algorithm and choose $\theta$?
3 votes

Quantum phase estimation does not have anything to do with $\theta$. I feel that you are confusing phase estimation with the implementation of HHL as given in the paper https://arxiv.org/abs/1804....

View answer