3

An operator on the Hilbert space of $ n $ qubits is called a local unitary if it is of the form $$ U=\bigotimes_{i=1}^n g_i $$ where each $ g_i $ is a $ 2 \times 2 $ unitary matrix. In other words if it is an element of the group of local unitaries $$ \bigotimes_{i=1}^n U_2 $$ The group of all non-entangling gates on an $ n $ qubit Hilbert space is exactly the normalizer of the group of local unitaries $$ N \Bigg( \bigotimes_{i=1}^n U_2 \Bigg) \cong \bigotimes_{i=1}^n U_2 \rtimes S_n $$ The structure of this group as a subgroup of $ U_{2^n} $ is a bit difficult to describe. Fortunately, in quantum mechanics global phase is irrelevant so we really work in a projective Hilbert space and the operations are projection unitaries. So modding everything out by a $ U_1 $ group of global phases the group of local projective unitaries as a subgroup of $ PU_{2^n} $ becomes $$ \prod_{i=1}^n PU_2 $$ and it turns out the group of all non-entangling gates in $ PU_{2^n} $ is exactly $$ N \Bigg(\prod_{i=1}^n PU_2 \Bigg)= \Bigg(\prod_{i=1}^n PU_2 \Bigg) \rtimes S_n $$ where the symmetric group on $ n $ letters acts by permuting the $ n $ many $ PU_2 $ groups in the direct product in the natural way.

$ 2 $ is not special in this discussion and can be replaced with any qudit dimension $ d $.

Now we define code equivalence, following Raines

https://arxiv.org/abs/quant-ph/9704043

Two codes are locally equivalent if they are related by a local unitary. And we will say two codes are globally equivalent, or just equivalent, if they are related by a local unitary and a permutation (in other words, they are related by a non-entangling gate).

Let $ C_1,C_2 $ be two codes with the same parameters $[\![n,k,d]\!]$. Is it true that that $ C_1 $ and $ C_2 $ are equivalent if and only if they have isomorphic transversal gate groups?

Note that two codes which are equivalent must have conjugate and thus isomorphic transversal gate group.

2 Answers2

3

Two $[\![n,k,d[\!]$ codes with the same transversal gates may be inequivalent under local unitaries.

Example 1: Shor's $9$-qubit code and $3\times 3$ surface code

The $9$-qubit Shor's code and the $3\times 3$ rotated surface code are $[\![9,1,3]\!]$ codes with the single-qubit$^1$ transversal$^2$ group isomorphic to the Pauli group. However, they are not equivalent under local unitaries. We can see this by considering the number of stabilizers of a given weight which is an invariant of equivalence under local unitaries. We count nine weight-$2$ stabilizers in the stabilizer group of the $9$-qubit code but only four in the stabilizer group of the $3\times 3$ surface code.

Example 2: Two different surface codes

Consider the rotated surface code on a $2\times 4$ lattice of data qubits and the surface code obtained by removing a corner data qubit in the $3\times 3$ rotated surface code. Both are $[\![8, 1, 2]\!]$ codes with the same set of transversal gates. They are inequivalent under local unitaries since they have different code distances for $X$ and $Z$ errors. The former has code distances two and four. The latter has code distances two and three.

More examples: deforming topological codes, CSS construction

The case of two surface codes above suggests a way to obtain further examples by deforming topological codes, such as the surface code or the color code, so that they have the same code parameters but different shape.

Another approach would be to find two sufficiently different self-dual doubly even classical codes with the same parameters $[n,k,d]$ and apply the CSS construction. The resulting codes will admit transversal implementation to all Clifford gates.


$^1$ I'm assuming single-qubit gates to ensure group operation is well-defined. Nevertheless, I think the codes probably have the same two-qubit transversal gates as well. In particular, they are both CSS codes so CNOT can be implemented transversally in both. If these limitations of the first example are a concern, see the second example.
$^2$ Here, I have chosen to interpret "transversal" in the strict sense where we demand that the logical operator leaves the code subspace unchanged. If we allow code subspace deformation then the transversal group becomes larger, e.g. the Hadamard is weakly transversal in both the surface code and the $9$-qubit code.

Adam Zalcman
  • 22,278
  • 3
  • 34
  • 83
  • I of course remember your very thorough proof that the only transversal gates of the 9-qubit Shor code are the transversal Paulis https://quantumcomputing.stackexchange.com/questions/27157/what-are-the-transversal-gates-of-shors-9-1-3-code. Could you say more about why the $ 3 \times 3 $ rotated surface code also only has transversal Paulis as its transversal gates? – Ian Gershon Teixeira Oct 19 '22 at 13:37
  • Unfortunately, that answer had an error (It is true that $UgU^\dagger\in\mathcal{S}$ for all stabilizers $g$ implies that $U$ is a logical operator, but I used the converse which is false; we only have that $UgU^\dagger = U_L\oplus U_N$ where unitary $U_L$ maps the logical subspace to itself; this is actually rather important since it's why codes with transversal non-Cliffords exist). I rewrote it to fix the issue, so please have another look there. Apologies for the mistake. – Adam Zalcman Oct 19 '22 at 18:29
  • Regarding the transversal gates of the surface code, I'm relying here on what seems to be fairly common knowledge, but admittedly, I don't know how to prove it at the moment (it would make a great QCSE question!). That's why I included the other examples and suggestions. BTW, it seems that a simple yet rigorous non-equivalence proof might be constructed for two color codes or two CSS codes deriving from self-dual doubly even classical codes (since in those cases the transversal group coincides with the Cliffords and we can appeal to Eastin-Knill theorem to rule out other transversal gates). – Adam Zalcman Oct 19 '22 at 18:32
  • Ya, putting all my cards on the table here the counterexample I was definitely fishing for was two self dual doubly even CSS codes with the same parameters but that are not equivalent by local unitaries. That I would be very very very interested to see. If you can find that example I'll write you a thank you haiku. And just to clarify the common knowledge surface code thing, are saying that it is known that the $ 3 \times 3 $ rotated surface code has only Paulis transversal? Or are you saying more generally that its known all surface codes have only Paulis transversal? – Ian Gershon Teixeira Oct 19 '22 at 18:42
  • Hehe, I see. Well, a very simple example would be the following two $[![14, 2, 3]!]$ CSS codes. First code: use Steane code to encode the first logical qubit into physical qubits $1\dots 7$ and the second logical qubit into $8\dots 14$. Second code: use Steane code to encode the first logical qubit into physical qubits $1, 3, 5, 7, 9, 11, 13$ and the second logical qubit into $2, 4, 6, 8, 10, 12, 14$. In both codes, Cliffords are of course transversal. – Adam Zalcman Oct 20 '22 at 07:00
  • I suppose the above example is disappointing. I think what it tells us is that your definition of equivalence may need some rethinking. You should probably allow all non-entangling unitaries (not just product unitaries), so that merely swapping qubits isn't sufficient to break equivalence. N.B. check out the definition of equivalence of classical codes where bit permutations are explicitly mentioned (see e.g. p.39 in "The Theory of Error-Correcting Codes" by MacWilliams and Sloane). – Adam Zalcman Oct 20 '22 at 07:01
  • I think Paulis (and CNOT) are transversal in all vanilla surface codes regardless of distance. That said, there are variations of the surface code with more transversal gates (e.g. IIRC, Cliffords are transversal in the folded surface code and CCZ in 3D surface code). – Adam Zalcman Oct 20 '22 at 07:08
  • To get rid of the permutation issue, one could just use any distance color code on a hexagonal lattice and the same distance color code on a "squares and octagons lattice". Then pad the hexagonal lattice with qubits fixed to zero to formally give them identical [[n,k,d]] params. Different size stabs --> not locally equivalent. Both doubly even. – squiggles Oct 20 '22 at 07:52
  • @squiggles are those CSS codes just doubly even or are they also self-dual? We need both properties to know that the full transversal gate group for those codes is the Clifford group (see https://quantumcomputing.stackexchange.com/a/15305/19675 ). Comparing the two codes you describe is an interesting idea in its own right but I'm just trying to make sure I understand how it relates back to the new question raised in the comments about finding two distinct Clifford transversal codes with the same parameters. Or were you just suggesting that as another answer to the title question? – Ian Gershon Teixeira Oct 21 '22 at 12:43
  • @AdamZalcman good point! I updated the definition of equivalence – Ian Gershon Teixeira Oct 21 '22 at 13:27
  • You shouldn't change the meaning of a question after answers are posted as this will confuse future readers. You can of course post any number of related questions you like :-) – Adam Zalcman Oct 21 '22 at 15:21
  • They're both doubly even and self-dual. In each, the X- and Z-stabilizers have identical support (modulo on the throwaway fixed padding qubits). They both implement the full Clifford group transversally. – squiggles Oct 21 '22 at 16:16
  • @squiggles if I asked a new question about codes with the same parameters and both implementing transversal Clifford but which are not equivalent would you be willing to post this example as an answer? – Ian Gershon Teixeira Nov 01 '22 at 23:09
  • @AdamZalcman hey just seeing this. I think everything in your answer is still true for the new definition so its probably ok in this case, but you're right that's it's always good to just ask a new question! – Ian Gershon Teixeira Nov 01 '22 at 23:12
1

I'm not sure if this example deals quite with your intent, but I believe it answers the question...

Consider the [[15,1,3]] Reed-Muller code. This has transversal X,Z,S,T,cNOT, controlled-S, controlled-Z, controlled-controlled-Z but not H in its standard presentation (there are many more Z stabilizers than X stabilizers).

If I apply Hadamard to every qubit, I still have a [[15,1,3]] code, but the transversal operators are Hadamarded versions of the previous ones. This is clearly not the same group (I guess that if you put the two groups together, you'd have universality).

DaftWullie
  • 57,689
  • 3
  • 46
  • 124
  • I'll go back and clarify my question. I really mean isomorphic group when I say "the same group" (bad word choice on my part). As you note here and as I note in the last sentence of my question you can always apply a locally unitary $ U $ ($ U=H^{\otimes 15} $ here ) to some code $ C_1 $ ($ C_1=[[15,1,3]] $ code here) and that will give a new code $ C_2 $ with all the transversal gates conjugated by $ U $. Although you are surely right that these are not "the same" gates and they do not generate "the same group" they do generate an isomorphic group, since conjugation is always an isomorphism. – Ian Gershon Teixeira Oct 17 '22 at 14:00