Skip to main content

All Questions

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
97 views

Is this quantum circuit design more prone to noise?

I am designing a quantum circuit which uses one qubit as the control of many $\text{CSWAP}$ operations. And then, this qubit will be measured. Will the result be more prone to noise since all the ...
Deren  Liu's user avatar
  • 121
1 vote
2 answers
94 views

Error while plotting the resulting distribution

I am using this code, as a test of my qiskit, but I am having errors on using the simulator Building the circuit We begin by importing Qiskit. from qiskit import * ...
Dilma David's user avatar
1 vote
0 answers
20 views

How to model the IBM quantum errors?

I'm conducting a study of the quantum channel errors, and a question has arisen: Is it possible to model the errors of an IBM quantum computer with Kraus operators?
Leandro Matheus Morais da Silv's user avatar
3 votes
0 answers
37 views

Does qiskit make any rounding errors or anything similar, or is it a perfect (but slow) simulation of a quantum computer?

I ran the following circuit to calculate the real part of the Bargmann Invariant of a system of quantum states. The invariant is defined as ...
Srini Thirumalai's user avatar
1 vote
1 answer
159 views

How to fix two flip-bit errors in a 3 qubit input

Aware of how a 1-bit flip can be fixed for 3-qubit input by having 2 Ancilla bits, encoding, and using the Toffoli gate to fix the error and decode. How can this idea be extended for a 2-bit flip (...
codeit's user avatar
  • 69
1 vote
1 answer
239 views

Get parameters of a CU gate for implementing an erroneous CX gate with fidelity = 0.81

Let's say the definition of an erroneous CNOT gate is given as - CNOT is a 2-qubit quantum gate when the control qubit is at state 0, applies identity operation on the target qubit, when the control ...
codeit's user avatar
  • 69
3 votes
1 answer
134 views

Quantum error correction circuit from stabilizer codes

I am trying to familiarize myself with QEC codes and their use in quantum communication. Right now, I am trying to implement some more widely known codes in Qiskit. My main problem is I cannot wrap my ...
Narcano's user avatar
  • 31
1 vote
1 answer
219 views

Simulating a small distance surface code with individual qubit addressing

I want to simulate a small-distance surface code with either STIM or Qiskit. I want individual control over all the qubits (including the ancillas) to induce controlled errors in my circuit. I want to ...
Aubrey Sharansky's user avatar
0 votes
1 answer
188 views

How to see the effects of the depolarizing channel in qiskit?

I am playing around with adding noise to quantum circuit simulation using qiskit_aer.noise.NoiseModel(). My code creates a quantum circuit and simulates it with ...
Christian Bunker's user avatar
0 votes
1 answer
134 views

How to apply error-correction to the swap test circuit?

Swap test is a simple quantum circuit to measure the inner product of two quantum states [Wiki: swap test], it only contains three quantum gates. However, due to the error in the real quantum computer ...
Saul_better's user avatar
0 votes
1 answer
224 views

How to implement Shor's 9-Qubit-Code in Qiskit?

I am new to qiskit and currently trying to implement Shor's 9-Qubit_Code. I am trying to orient my code on the example given in the official qiskit-tutorial and so far I have the following: ...
3nondatur's user avatar
  • 173
2 votes
1 answer
177 views

Are there qiskit or stim examples of how to decode a subsystem code

I can manage decoding a stabilizer code in qiskit and stim. I'd like to try a subsystem code next. For a stabilizer code, all stabilizers commute so simultaneous measurement of these produces ...
unknown's user avatar
  • 2,217
1 vote
1 answer
52 views

How to best represent 5-Qbit codeword operator in Qiskit [duplicate]

We learned that in the 5-Qibit error correcting code, the logical zero state $ | \bar{0} \rangle $ is encoded in the form of $ \frac{1}{4} (\mathbb{1}+M_0)(\mathbb{1}+M_1)(\mathbb{1}+M_2)(\mathbb{1}+...
Blackwidow's user avatar
1 vote
0 answers
39 views

anyone know how to solve the error plz? [closed]

...
juhaina's user avatar
  • 11
1 vote
1 answer
194 views

Measurement of readout errors for error mitigation algorithms

I am using an error mitigation algorithm that uses the readout errors p(0|1) and p(1|0) to correct the errors due to noise in my original circuit. I am trying to measure the readout errors in the same ...
bisarch's user avatar
  • 199
1 vote
1 answer
197 views

Logical error rate for QECC using qiskit

I've been coding QECC with qiskit recently. As I'm not very skilled in programming I encountered a lot of questions. Now I'm trying to generate the logical error rate against physical error rate graph ...
AndyLiuin's user avatar
  • 386
0 votes
0 answers
182 views

Qiskit, possible to manipulate mid-circuit measurement outcomes?

I'm currently coding up an error correction gadget using qiskit. The one I'm doing now is 7-qubit Steane code with Steane's error correction gadget, in which the ancilla qubits are measured and then ...
AndyLiuin's user avatar
  • 386
2 votes
1 answer
446 views

Estimate of threshold values for 7-qubit Steane code with qiskit (or stim)

I have trouble recreating the graphs shown in this paper https://arxiv.org/pdf/quant-ph/0508176.pdf i.e. the quadratic trend of the logical error against physical single qubit error for [7,1,3] code I ...
AndyLiuin's user avatar
  • 386
1 vote
0 answers
78 views

Why QECC amplitude damping error syndrome and qiskit simulation are different?

The [[3,0,2]] code, stabilizers are X1Z2I3,Z1X2Z3,I1Z2X3. Use the circuit to decode and measure stabilizers: As for amplitude damping error syndrome, use $\left[\begin{array}{cc}1 & 0 \\ 0 & ...
user22477's user avatar
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
1 vote
1 answer
269 views

How to interface stim to a generic qiskit decoder?

I can generate encoder/decoder circuits for arbitrary QECC in qiskit. I tested a number of codes : $[[5,1,3]], [[7,1,3]],[[8,3,3]],\cdots$ and everything seems to work fine. The problem is that the ...
unknown's user avatar
  • 2,217
3 votes
1 answer
416 views

is cirq suitable for simulation of quantum error correction?

I experimented with stim and qiskit for QECC simulations. They both have limitations : for example stim has no support for non-clifford operations (qiskit does); qiskit has no support for multiple ...
unknown's user avatar
  • 2,217
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
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
1 vote
2 answers
155 views

The statevector of three-qubit bit-flip encoding circuit for entangled state

I was trying to implement a three-qubit bit-flip code for shared entangled state. I was curious to analyze this mathematically, but the problem is I can't calculate the statevector after encoding. ...
Syed Emad Uddin's user avatar
0 votes
0 answers
59 views

How to set up a error detection and correction scheme on qiskit

Does, at the state of the art, Qiskit allows to do error detection and correction? If yes, how can I do it?
Daniele Cuomo's user avatar
1 vote
1 answer
242 views

Information about the output of %qiskit_backend_overview

Does anyone know where can I find more information about the meaning of some parameters outputted by %qiskit_backend_overview ? I mostly refer to "Avg. T1/T2&...
Marian Dumitrascu's user avatar
0 votes
1 answer
80 views

Is it possible for public users to run experiments using Qiskit's surface code?

I'm an undergrad who would like to run some experiments using the surface code. I've been able to use their quantum repetition code (https://qiskit.org/textbook/ch-quantum-hardware/error-correction-...
John Macintosh's user avatar
4 votes
2 answers
247 views

Why aren’t repetition codes used to encode qubits in superposition states?

I just finished reading the section of the qiskit textbook on quantum error correction using repetition codes(https://qiskit.org/textbook/ch-quantum-hardware/error-correction-repetition-code.html) and ...
John Macintosh's user avatar
2 votes
1 answer
222 views

Confusion about Mitiq folding for zero noise extrapolation

I'm reading the mitiq zero noise extrapolation documentation and I just can't make sense of how the scale_factor for folding work. "The minimum scale factor is one (which corresponds to folding ...
Ahmed Malik's user avatar
5 votes
1 answer
206 views

Where does the "correction" in quantum error correction occur, specifically when using repetition codes?

I'm reading the part of the qiskit textbook that deals with this (https://qiskit.org/textbook/ch-quantum-hardware/error-correction-repetition-code.html) and so far it seems as though they're just ...
John Macintosh's user avatar
2 votes
1 answer
191 views

Qiskit noise model question (from textbook)

I'm reading the chapter Introduction to Quantum Error Correction using Repetition Codes and a code example demonstrates how to add depolarizing and pauli error. I have several questions. Is it not ...
Ahmed Malik's user avatar
1 vote
1 answer
84 views

Can someone please explain how the syndrome bit still ends up being 0 in this quantum error correction circuit using repetition code?

I'm not too great at dealing with superpositions and applying the CNOT gate when superpositions are involved. Can you go through it in detail each gate using math/matrices etc. It's based on the ...
John Macintosh's user avatar
3 votes
1 answer
3k views

Keep receiving Error - AttributeError: 'QuantumCircuit' object has no attribute 'save_statevector'

I am attempting to code a feed-forward simulation of a QECC in Qiskit. Qiskit (to my knowledge) does not directly support feed-forward simulation, so I attempted a work-around. I call the simulator ...
MatthewS1990's user avatar
2 votes
1 answer
137 views

QPE Circuit test on Quantum Computer ('ibmq_16_melbourne')

After several atempts, I cannot mitigate the error when running the code on a NISQ, via the qiskit library (more specifically on the 'ibmq_16_melbourne'). I've already mapped the connected qubits and ...
Diogo Gonçalves's user avatar
4 votes
1 answer
361 views

How to calculate the generators of a list of stabilizer?

Let's say we have a list of stabilizers: {'YZY*', 'XYY*', 'YZYZ', 'Z*Z*', '*XZ*', 'XZX*', 'ZX*Z', 'XZXZ', 'YYX*', 'Z*ZZ'}. Is there any existed formula or function (eg. in qiskit) that can calculate ...
peachnuts's user avatar
  • 1,393
3 votes
3 answers
252 views

Quantum Error Correction implementation in Qiskit, OpenQASM or other languages based on Python

Where can we find example(s) of implementation code in a programming language of Quantum Error Correction, whether with the standard method of measurement or the automatic method without measurement (...
Bertrand Mercier's user avatar
2 votes
0 answers
281 views

How to implement Majority Vote

I am trying to boost the success probability of standard phase estimation by repeating the procedure enough times and taking a majority vote that will be encoded in a quantum register. My problem is I ...
Kiji's user avatar
  • 53
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
0 votes
1 answer
145 views

Is there a way to entangle to a dirty qubit?

Let's say I do something to a qubit, and I want to entangle it to a 2nd one, like this: ...
Jack Nathan's user avatar
2 votes
1 answer
203 views

Why and how is quantum noise predictable?

I have been learning about quantum error correction using the zero-noise extrapolation method from this paper and have been pleased with the results. This method takes advantage of the fact that the ...
thespaceman's user avatar
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
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
2 votes
1 answer
455 views

How to do error mitigation on the ibmq_16_melbourne?

I'm trying to make a calibration matrix using CompleteMeasFitter as in here on IBMQ Melbourne, but I need to use all 15 qubits, which mean it has to run 32768 calibration circuit, far exceeding the 75 ...
Jack Nathan's user avatar
1 vote
1 answer
269 views

Quantum error correction on IBM devices?

I'm wondering if the gate errors on any of the IBM devices are low enough so that we could use some error correcting codes which do not require too many qubits? (such as 5- or 7-qubit codes). Even ...
mavzolej's user avatar
  • 1,981
0 votes
1 answer
268 views

Real-device error mitigation with qiskit

I'm trying to do error mitigation in IBM-Q quantum computers with qiskit. I followed the tutorial here. My thought was that in order to make sure that I'm correcting the qubits that I'm actually using ...
Frank Wang's user avatar
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
484 views

Different results between qasm_simulator and quantum computer: how to normalize for only few states

I recently started developing circuits with Qiskit. I made a 5 qubit circuit in which the fourth qubit at the end of execution must always have value 1: When I do the simulation with qasm everything ...
Martina's user avatar
  • 23
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

15 30 50 per page