Skip to main content
Share Your Experience: Take the 2024 Developer Survey
4 votes
Accepted

Where do I create my first circuit?

Google colab is one good option. You will need to install Qiskit module(s) at the beginning, then you are ready:
Egretta.Thula's user avatar
3 votes

Where do I create my first circuit?

Once you have the .qasm, you can also upload it to the Classiq platform https://platform.classiq.io/circuit, and then run it on a simulator. To create your .qasm file (qiskit version 1.1) you will ...
relsmoler's user avatar
2 votes

Trying to understand a quantum adder

The correct way to interpret the number is using a compiler that follows the qubit mapping. You can see how it is done in Classiq, for example, by running examples from the arithmetic library To your ...
Ron Cohen's user avatar
  • 1,402
2 votes

Help debugging implementation of Draper QFT adder

You can take a look at how to create an adder whether it is a QFT or a ripple-carry, using the answer here You also need a compiler that interprets the order of the qubits correctly; you can see how ...
Ron Cohen's user avatar
  • 1,402
2 votes

How to read QASM files for parametrized circuits (in QISKIT)? both from_qasm_file() and from_qasm_str() fail

You can use qiskit-qasm3-import library Once you have the QASM3 program, use : from qiskit_qasm3_import import parse And than ...
Amir Naveh's user avatar
2 votes
Accepted

Quantum circuit of stateful oracle

To add a bit on my comments (and also to actually provide an answer to the post), you have to remember that $U_f$ is nothing more than a matrix. Querying the oracle is actually applying $U_f$ to the ...
Tristan Nemoz's user avatar
  • 6,432
1 vote

How to analyse a quantum circuit with an uncertain gate F?

Disclaimer: analysis below works only for gates $F$ changing phase only. Once absolute values of amplitudes are changed, other results than predicted below are returned. Lets analyze your circuit step ...
Martin Vesely's user avatar
1 vote
Accepted

How to use the classical expressions for qiskit for real backends?

Assume that your classical register is cr, then using Qiskit you can XOR the first three bits then apply an $X$-gate based on the expression value as follows: ...
Egretta.Thula's user avatar
1 vote

Interpretation of a circuit that yields the same result for initializations $|+\rangle$ and $|-\rangle$

The way to think about the circuit you showed (and it can generalise to some multi-qubit cases) is that when you measure, you collapse the qubit into a particular state, 0 or 1. You can now run the ...
DaftWullie's user avatar
  • 58.7k
1 vote
Accepted

Showing the Toffoli gate can be constructed from one-qubit gates using computer matrix multiplication

The main problem is that ChatGPT completely ignores CNOT gates in both cases (and $S$ gate as well). What is more, you need not only CNOT for two adjacent qubits but also CNOT for non-adjacent qubits. ...
Martin Vesely's user avatar
1 vote

Two Quantum State Density Matrices with Unequal Off-Diagonal Elements but Equal Magnitudes

Generally speaking, two density matrices with equal diagonal correspond to states which are indistinguishable when measured in the computational basis, but which result in different outcome ...
glS's user avatar
  • 25.3k
1 vote

Does subtraction circuit have a class like full or half Carry adder circuit in qiskit? one subtraction circuit code-example in qiskit?

For subtraction as mentioned earlier you have to negate the number, and than use an adder. There are few possible implementations for that (adder can be with QFT or with ripple-carry adder with more ...
Ron Cohen's user avatar
  • 1,402
1 vote

Does the Bell's state entanglement violate the reversibility property of unitary matrices?

See the latest Inverse Unitary gates to denote the input of bipartite qubits where Bell state was formed
Asifur Ashik's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible