Skip to main content

All Questions

5 votes
1 answer
5k views

How to implement if statement based on measurement results in qiskit?

I tried to implement three qubit bit flip code in qiskit and need to get the result of measurements and then apply recovery quantum operations conditioned on the measurement results. The following is ...
Jacey Li's user avatar
  • 585
4 votes
1 answer
510 views

How the real IBM quantum computers apply arbitrary Rz(θ) gate rotation? [closed]

I want to ask the following questions: (1) The basis gate set of IBM quantum computers is { Id, Rz(θ),√X, X, CNOT, reset}. Somebody said that IBM didn’t really apply Rz(θ) gate on the machine. The ...
劉承瀚's user avatar
2 votes
2 answers
656 views

Mitigating the noise in a quantum circuit

I'm using Qiskit and I have a Quantum Circuit (say, circuit) that gives reasonable results when using the simulator, namely ...
Vitality's user avatar
  • 143
1 vote
1 answer
437 views

how to go from matrix to tableau to circuit in qiskit or stim

I'm working with QECC using a non-python based platform. I'd like to move the results into python to do calculations that are better handled by packages like qiskit or stim. So the output of the non-...
unknown's user avatar
  • 2,217
5 votes
1 answer
4k views

Get result measurement into a circuit with Qiskit

I'm trying to implement the three qubit bit flip code in Qiskit. Therefore, I need to get the result of a measure of two ancilla qubits, to deduce which gate I need to use do recover my logical qubit....
lufydad's user avatar
  • 481
5 votes
3 answers
882 views

How to create the logical $|0_L\rangle$ state for the Steane's 7-qubit code?

I don't know how to prepare using Qiskit the following state in order to implement a Steane's 7-qubit code circuit (I omit the normalization factor): \begin{align*} |0_L\rangle =&|0000000\rangle+|...
Hub One's user avatar
  • 75
3 votes
1 answer
150 views

How to set the meas_level and optimization_level in Quantum Azure IonQ provider?

I am performing a benchmark process using the Azure Quantum IonQ provider. I use Qiskit in the Azure platform, and I was trying to see how to control the transpiling and compiling process. It seems ...
Camilo160's user avatar
  • 284
2 votes
1 answer
352 views

Is it possible to implement c_if statement based on a measurement in a single specified classical bit in qiskit?

I'm trying to write a 1-bit teleportation error correction code and there is one part in it where I need to add a gate that's dependent on a measurement from earlier in the circuit. The measurement ...
Alexa T's user avatar
  • 21
2 votes
1 answer
153 views

Specifying qubits to achieve measurement error mitigation on Qiskit

I'm learning how to do error mitigation on Qiskit as my experiment result differs from the simulated result. I read the tutorial here, but I have some questions about it. If I have understood it ...
Frank Wang's user avatar
2 votes
1 answer
193 views

Different QFT results when using Simulator or Quantum Machine

I'm performing QFT using the following code: ...
Vitality's user avatar
  • 143
1 vote
0 answers
41 views

How to implement fault tolerant cat state construction with qiskit?

I want to build a fault-tolerant error correction gadget in qiskit. As a part of that, I want to construct cat states (for the syndrome measurements) in a fault-tolerant way. One way to do this, is to ...
qubitzer's user avatar
  • 745
1 vote
1 answer
724 views

Applying a projector to a qubit in a qiskit circuit

I'd like to be able to apply $|0 \rangle \langle 0|$ to project a qubit to the state $|0 \rangle$ in the middle of qiskit circuit (see, for example, the attached circuit). I wonder if, in general, ...
danuzco's user avatar
  • 25