# Questions tagged [toric-code]

The toric code is a topological quantum error correcting code, and an example of a stabilizer code defined on a two-dimensional spin-lattice. It is the simplest and most well studied of the quantum double models (first studied in the context of Z2 spin liquid in 1991). It is also the simplest example of topological order—Z2 topological order. The toric code can also be considered to be a Z2 lattice gauge theory in a particular limit. (Wikipedia)

24 questions
Filter by
Sorted by
Tagged with
19 views

### Toric Code with stim?

Is there any way to encode toric code with stim with desired error such as erasure error and z error? I have seen their documentation on surface code but that is already encoded. Is there any good ...
28 views

### What is the role of color in color code? ( theoritically and exprimentally)

We know that the color code has an extra element relative toric code . It is color . I want to know what is the role of color ?
1 vote
39 views

### ValueError: non-deterministic detectors while using Stim to simulate Toric code

I am trying to simulate Toric code using Stim. Below is my simple circuit specification in Stim: ...
1 vote
60 views

### 3D toric code (2D + measurement errors) has higher threshold error rate $p_{\text{th}}$ than 2D?

I am doing simulations of the toric code using the statistical mapping worked out by Preskill et al., Topological Quantum Memory, [arXiv:quant-ph/0110143], where we find the phase boundary of an Ising ...
• 348
95 views

### Construction of 3D Toric Code

I am currently trying to find a mathematically elegant way to describe the construction of a 3D toric code. Since most literature is on 2D toric codes I was looking there for potential clues on how to ...
• 41
61 views

### How to address the 2 logical qubits on the toric code individually? In general, how to address $k$ logical qubits in a $[[n,k,d]]$ code independently?

Suppose I have a $[[n,k,d]]$-quantum error correction code. Let us take the toric code $(T^2=S^1 \times S^1)$ as an example. We have 2 logical qubits whose logical operators lie along the different ...
• 348
100 views

### Why does Stim/PyMatching evaluate the threshold error rate differently for even and odd distances?

For the toric code, the threshold error rate value for no measurement errors should be around $p_{th}\approx 0.109$. If simulated with even distances, one finds that this is true. However, when I ...
• 348
1 vote
148 views

### How to compute Z logical operators of a toric code using Kunneth theorem?

I'm going through pymatching tutorial on constructing a toric code using hypergraph product of two repetition codes. The hypergraph product code construction $H G P\left(H_1, H_2\right)$ takes as ...
• 137
1 vote
217 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 ...
40 views

### Pymatching: 'Matching' object has no attribute 'decode_batch'

I am trying to run the example from documentation: pymatching docs Here is my code: ...
• 626
1 vote
77 views

### How horizontal loops on the toric code are all undetectable?

I understand that if we have, for example, the blue path doesn't make any check operator detect any error, but what about the red path? We have the check operator detecting since there is just one ...
249 views

### Is there a way to perform a defect-free logical CNOT on the toric code?

I was curious to whether the two logical qubits on the toric code can be entangled through, for instance, a logical CNOT operation. However, I cannot find any information on this, only how you can do ...
• 99
1 vote
127 views

### How to Switch Toric Code to Surface Code (no using STIM!)

Here is the toric code example which I found from :https://pymatching.readthedocs.io/en/latest/toric-code-example.html ...
• 626
1 vote
233 views

### Pymatching Toric Code vs Surface Code

I am looking the example of toric code in Pymatching. Here is the code: ...
• 626
177 views

### How to get the matched nodes using Matching.decode() in PyMatching?

In the module matching.py of PyMatching, it is possible to construct Matching objects to decode matching graphs using the minimum-weight perfect matching decoder. The ...
71 views

### Why are all the error cosets $Q.S$ given the erasure chain $\mathcal E$ and a syndrome $\sigma$ equiprobable? (Delfosse-Zémor)

In arXiv 1703.01517 (published here), a maximum likelihood decoding for qubit loss is explained. A quantum erasure channel erases each qubit independently with some probability $p$ and replaces it ...
• 17.6k
274 views

### Energy and degeneracy of the ground state and excitations of the toric code

Recall the hamiltonian of the toric code: (information mainly extracted from https://arxiv.org/pdf/1610.09260.pdf) Consider Je=Jm=1. I've been trying to get the exact energies and degeneracies of the ...
434 views

### Why Is This the Ground State of a Toric Code?

I am currently trying to study the ground state of the Toric Code. I am currently reading this paper. The Hamiltonian is given by the following, where $A_s$'s are the star operators made out a tensor ...
• 199
428 views

### What is the Stabilizer of a Code?

I am currently reading the beginning of the paper Topological Quantum Memory and I am confused about one part: The check operators generate an Abelian group, the code’s stabilizer. When I learned ...
• 199
59 views

### Questions on Definitions and Concepts Regarding Toric Codes

Currently, I reading the toric code section in the beginning of the paper Topological Quantum Memory. Here are a couple of sections that are somewhat confusing to me. (1) This quote below is under a ...
• 199
827 views

### is the minimum weight perfect matching decoder optimal

The toric code and other popular codes can be decoded using minimum weight perfect matching. Is this an optimal decoder? Here by optimal, I mean it gives the best logical error rate vs physical error ...
• 2,217
958 views

### how to simulate toric and surface codes with stim + PyMatching

According to PyMatching's github page the package can be decode toric and surface codes. Stim's example uses stim + PyMatching combination to get logical error rate vs physical error rate curves for ...
• 2,217
Note: Cross-posted on Physics SE. The quantum Singleton bound states that for an error-correcting code with $n$ physical qubits and $k$ encoded qubits, and some subsystem $R$ of $m$ qubits that can '...
The Toric code Hamiltonian is: $\sum_{x,y}\left( \prod_{i\in p(x,y)} Z_{ixy} + \prod_{i\in v(x,y)} X_{ixy} \right),$ where the $v$ and $p$ are defined according to this picture (courtesy of James ...