CyberIntel ⬡ News
★ Saved ◆ Cyber Reads
← Back ◌ Quantum Computing Feb 22, 2026

Implementation of transversal Hadamard in Knill's $C_6$ code

Quantum Computing SE Archived Mar 25, 2026 ✓ Full text saved

I have been reading Knill's paper on the $C_4/C_6$ architecture and I am getting confused by how the Hadamard can be implemented. It is claimed in the paper that the Hadamard operation is transversal (up to a swap operation in the case of $C_4$ , see figure 12). My algebra seems to show that this is the case for $C_4$ but not $C_6$ , so I am hoping someone can point out a flaw in my reasoning. First let me start with $C_4$ because I understand this case. The $C_4$ code is a $[[4,2,2]]$ code with

Full text archived locally
✦ AI Summary · Claude Sonnet


    Implementation of transversal Hadamard in Knill's C 6 𝐶 6 code Ask Question Asked 30 days ago Modified today Viewed 93 times 1 I have been reading Knill's paper on the C 4 / C 6 𝐶 4 / 𝐶 6 architecture and I am getting confused by how the Hadamard can be implemented. It is claimed in the paper that the Hadamard operation is transversal (up to a swap operation in the case of C 4 𝐶 4 , see figure 12). My algebra seems to show that this is the case for C 4 𝐶 4 but not C 6 𝐶 6 , so I am hoping someone can point out a flaw in my reasoning. First let me start with C 4 𝐶 4 because I understand this case. The C 4 𝐶 4 code is a [[4,2,2]] [ [ 4 , 2 , 2 ] ] code with stabilizers ZZZZ 𝑍 𝑍 𝑍 𝑍 and XXXX 𝑋 𝑋 𝑋 𝑋 , in addition to logical operators X 1 =XXII, Z 1 =ZIZI, X 2 =IXIX, Z 2 =IIZZ 𝑋 1 = 𝑋 𝑋 𝐼 𝐼 , 𝑍 1 = 𝑍 𝐼 𝑍 𝐼 , 𝑋 2 = 𝐼 𝑋 𝐼 𝑋 , 𝑍 2 = 𝐼 𝐼 𝑍 𝑍 . It is then easy to check that H ⊗4 X 1 H ⊗4 =ZZII=IIZZ= Z 2 𝐻 ⊗ 4 𝑋 1 𝐻 ⊗ 4 = 𝑍 𝑍 𝐼 𝐼 = 𝐼 𝐼 𝑍 𝑍 = 𝑍 2 H ⊗4 X 2 H ⊗4 =IZIZ=ZIZI= Z 1 𝐻 ⊗ 4 𝑋 2 𝐻 ⊗ 4 = 𝐼 𝑍 𝐼 𝑍 = 𝑍 𝐼 𝑍 𝐼 = 𝑍 1 where the last equality in both cases follows from applying stabilizers. Hence we can see that applying Hadamard transversely and swapping the logical qubits is equivalent to the product of logical Hadamard operations. Now let us consider the case of C 6 𝐶 6 . In this case the stabilizers are XIIXXX,XXXIIX,ZIIZZZ,ZZZIIZ 𝑋 𝐼 𝐼 𝑋 𝑋 𝑋 , 𝑋 𝑋 𝑋 𝐼 𝐼 𝑋 , 𝑍 𝐼 𝐼 𝑍 𝑍 𝑍 , 𝑍 𝑍 𝑍 𝐼 𝐼 𝑍 and the logical operators are X 1 =IXXIII, Z 1 =IIZZIZ, X 2 =XIXXII, Z 2 =IIIZZI 𝑋 1 = 𝐼 𝑋 𝑋 𝐼 𝐼 𝐼 , 𝑍 1 = 𝐼 𝐼 𝑍 𝑍 𝐼 𝑍 , 𝑋 2 = 𝑋 𝐼 𝑋 𝑋 𝐼 𝐼 , 𝑍 2 = 𝐼 𝐼 𝐼 𝑍 𝑍 𝐼 . Now let us see what the action of transversal Hadamard is in this case. For X 1 𝑋 1 , we have H ⊗6 X 1 H ⊗6 =IZZIII=IIIZZI= Z 2 𝐻 ⊗ 6 𝑋 1 𝐻 ⊗ 6 = 𝐼 𝑍 𝑍 𝐼 𝐼 𝐼 = 𝐼 𝐼 𝐼 𝑍 𝑍 𝐼 = 𝑍 2 where we have applied stabilizers again. This is already strange - Knill's paper does not mention the need for a swap operation in C 6 𝐶 6 , but we seem to have gotten Z 2 𝑍 2 instead of Z 1 𝑍 1 as we would expect. Things are even stranger for X 2 𝑋 2 : H ⊗6 X 2 H ⊗6 =ZIZZII≠ Z 1 𝐻 ⊗ 6 𝑋 2 𝐻 ⊗ 6 = 𝑍 𝐼 𝑍 𝑍 𝐼 𝐼 ≠ 𝑍 1 That is, there is no stabilizer relating Z 1 𝑍 1 to H ⊗6 X 2 H ⊗6 𝐻 ⊗ 6 𝑋 2 𝐻 ⊗ 6 . I'm either misunderstanding what Knill is saying or I am making some kind of error. If you can see how the implementation should go please let me know, thanks! quantum-gateerror-correctionstabilizer-codelogical-gates Share Improve this question Follow asked Feb 22 at 17:38 miggle 2151 1 silver badge 5 5 bronze badges "Knill's paper does not mention the need for a swap operation in C 6 𝐶 6 ". It does. In the "Clifford gates for C4 and C6" section, it says. "The codes C4, C6 and their concatenations have the property that encoded CNOTs, HADs and measurements that act in parallel on both encoded qubits in a pair can be implemented “transversally” with physical qubit relabeling". The relabeling are SWAPs here. Anyway, I'm also confused that Fig 12 explicitly calls out relabeling for C4 but not for C6. –  Victory Omole Commented Feb 23 at 0:57 @VictoryOmole My point was that this was worded ambiguously - given that the qubit relabeling was explicitly provided for C 4 𝐶 4 , the absence of such a scheme for C 6 𝐶 6 makes it seem that relabeling is not necessary in that case. However it doesn't really matter, I have found a method to implement Hadamard which I have written up as an answer. –  miggle Commented Feb 23 at 15:00 Add a comment 1 Answer Sorted by: Highest score (default) Date modified (newest first) Date created (oldest first) 0 After some experimentation, I figured out how to implement the product of logical Hadamards in C 6 𝐶 6 . It doesn't seem to be consistent with what Knill says but I have confirmed that this works in a few ways. Here is my solution: First, we apply the Hadamard gate transversely. Next, we apply what Knill calls the ∗ u 2 ∗ 𝑢 2 operation to neighboring pairs of qubits, which is equivalent to a CNOT gate followed by a swap operation. Let's verify that this implements the expected logic. For the case of X 1 ¯ ¯ ¯ ¯ ¯ ¯ 𝑋 1 ¯ , transversal Hadamard produces the Pauli string IZZIII 𝐼 𝑍 𝑍 𝐼 𝐼 𝐼 . Putting neighboring qubits through the ∗ u 2 ∗ 𝑢 2 gate produces ZZIZII=IIZZIZ= Z 2 ¯ ¯ ¯ ¯ ¯ ¯ 𝑍 𝑍 𝐼 𝑍 𝐼 𝐼 = 𝐼 𝐼 𝑍 𝑍 𝐼 𝑍 = 𝑍 2 ¯ , where equality follows by applying stabilizers. Next consider X 2 ¯ ¯ ¯ ¯ ¯ ¯ 𝑋 2 ¯ . Transversal Hadamard in this case produces ZIZZII 𝑍 𝐼 𝑍 𝑍 𝐼 𝐼 which is then mapped to IZZIII 𝐼 𝑍 𝑍 𝐼 𝐼 𝐼 by ∗ u 2 ∗ 𝑢 2 . Stabilizers can then be used to map this to IIZZII= Z 2 ¯ ¯ ¯ ¯ ¯ ¯ 𝐼 𝐼 𝑍 𝑍 𝐼 𝐼 = 𝑍 2 ¯ . Maybe Knill just has an error, I'm not 100% sure because I have not read the entire paper. In any case, hopefully this can be a useful reference for others in the future. Share Improve this answer Follow answered Feb 23 at 14:58 miggle 2151 1 silver badge 5 5 bronze badges Add a comment Your Answer Sign up or log in Sign up using Google Sign up using Email and Password Post as a guest Name Email Required, but never shown Post Your Answer By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy. Start asking to get answers Find the answer to your question by asking. Ask question Explore related questions quantum-gateerror-correctionstabilizer-codelogical-gates See similar questions with these tags. The Overflow Blog Multi-stage attacks are the Final Fantasy bosses of security Related 5 Lattice splitting: understanding mathematically why it works based on the stabilizer formalism 7 What are the transversal gates of Shor's [[9,1,3]] [ [ 9 , 1 , 3 ] ] code? 4 Transversal Hadamard gates and multiple logical qubits 4 Does every code have a transversal Pauli group? 2 What are the transversal gates of the [[4,2,2]] [ [ 4 , 2 , 2 ] ] code? 1 The Output of Transversal Bell Measurement in Knill's Method of Fault-Tolerant Error Correction (FTEC) 1 Logical effect of gate on logical operators for the [[4,2,2,]] [ [ 4 , 2 , 2 , ] ] code 1 Do transversal gates need to exactly preserve the stabilizer group? 2 Does the stabilizer (−1 ) m 0 Z 2 ( − 1 ) 𝑚 0 𝑍 2 represent |+⟩ | + ⟩ for qubit2? 3 Why does the logical Hadamard on the rotated surface code require patch rotation instead of switching stabilizer measurements? Hot Network Questions Why didn't they take Rocky's ship when "fishing" for predators? Can an airline be required to compensate for "acts of god" if another flight successfully landed? Repairing wood frame for screen door attachment Geometric intuition of Gorenstein rings Why do some LLMs like ChatGPT add random words in foreign languages? What are the distributions of blocks in a tree? How should an undermount sink sandwiched with plywood be removed? Separated but Together Who has authority to order an evacuation if both pilots are incapable? Transportation considerations for Jewish travelers visiting Morocco? Shortcut to make a binary executable and then launch it Would a volcanic caldera or tectonic merging create a harsher mountain range around a coastal region? Power supply from reputable vendor providing voltage 30% off Proving a case of rational numbers Topology of compact manifolds admitting codimension-one foliations with dense leaves Continuing with on-campus faculty interview for tenure-track position with high likelihood of not accepting the offer How to add pictures after keynote update What happened in second half-month of January 2015? Did J.K. Rowling retcon the ability of house elves to apparate in Hogwarts? Review request: Capacitor discharge pulse driver PCB Can systemd be used only as an init system, without its other components? What is the meaning behind the story "Vision" by Osama Alomar? Which social theories explain protest-related arson, and why is it sometimes seen as morally justified? Is preferential voting incentive compatible? Question feed By continuing to use this website, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. By exiting this window, default cookies will be accepted. To reject cookies, select an option from below. Customize settings Cookie Consent Preference Center When you visit any of our websites, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences, or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and manage your preferences. Please note, blocking some types of cookies may impact your experience of the site and the services we are able to offer. Cookie Policy Accept all cookies Manage Consent Preferences Strictly Necessary Cookies Always Active These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information. Targeting Cookies Targeting Cookies These cookies are used to make advertising messages more relevant to you and may be set through our site by us or by our advertising partners. They may be used to build a profile of your interests and show you relevant advertising on our site or on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. Performance Cookies Performance Cookies These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance. Functional Cookies Functional Cookies These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly. Cookie List Clear checkbox label label Apply Cancel Consent Leg.Interest checkbox label label checkbox label label checkbox label label Necessary cookies only Confirm My Choices
    💬 Team Notes
    Article Info
    Source
    Quantum Computing SE
    Category
    ◌ Quantum Computing
    Published
    Feb 22, 2026
    Archived
    Mar 25, 2026
    Full Text
    ✓ Saved locally
    Open Original ↗