CyberIntel ⬡ News
★ Saved ◆ Cyber Reads
← Back ◌ Quantum Computing May 25, 2026

Quantum gates reversibility

Quantum Computing SE Archived Jun 02, 2026 ✓ Full text saved

The Reversibility of the quantum gates output to input is basically because of the extra bit (ancilla qubit) used and is by design and not naturally. The same can be done in classical also to reverse the output to input. Please let me know if my understanding is correct on reversibility. In that case if the circuit has multiple inputs should we also have matching ancilla qubit?

Full text archived locally
✦ AI Summary · Claude Sonnet


    Quantum gates reversibility Ask Question Asked 11 days ago Modified 11 days ago Viewed 87 times 1 The Reversibility of the quantum gates output to input is basically because of the extra bit (ancilla qubit) used and is by design and not naturally. The same can be done in classical also to reverse the output to input. Please let me know if my understanding is correct on reversibility. In that case if the circuit has multiple inputs should we also have matching ancilla qubit? quantum-gatequantum-algorithms Share Improve this question Follow edited May 25 at 7:46 Martin Vesely 15.6k4 4 gold badges 34 34 silver badges 77 77 bronze badges asked May 25 at 6:32 mysran 211 1 bronze badge Hi and welcome to Quantum Computing SE. Any quantum gate is described by a unitary matrix which is invertible. Hence any quantum gates in reversible naturally. Only exceptions are measurement and reset gates which cannot be reversed. –  Martin Vesely Commented May 25 at 7:45 Add a comment 1 Answer Sorted by: Highest score (default) Date modified (newest first) Date created (oldest first) 1 Reversibility of quantum gates isn't a design choice, but a need to have gates governed by quantum evolution, which is reversible (about why, you can check: https://physics.stackexchange.com/questions/270266/why-do-quantum-gates-have-to-be-reversible) Reversibility implies having an one-to-one relation between gate inputs and outputs, otherwise you would destroy information and would not be able to go "backward" (saying it in a bad way: if two different inputs result in the same output, given the output and going back you wouldn't know which input to get, you would miss injective property) Considering domain and range dimensions, one-to-one relation leads to gates having the same number of inputs and outputs lines. The ancilla can naively be seen as a trick to represent a QUANTUM GATE using CLASSICAL well-known logical gates, but be careful, it's usefulness is more profound than simply making the number of inputs = the number of outputs: in gates just more complex than the ones reproducing quantum version of their classical counterparts, we can have many ancillas and they can be seen as memory where to store intermediate results, before the final one, to avoid discarding anything (remember: discard = erasing = information lost = irreversibility). Note two important things: once the gate is evaluated, you cannot simply disinterest yourself of intermediate results because it would mean again to fall into irreversibility. That's why you have, for example, to "uncompute" meaning to apply the gate backward to revert to 0 (the ancillas' initial values) the intermediate store memory Between "computing" and "uncomputing" (to be read as "after computing" and "before uncomputing") you have your gate result, but of course you have to be careful "reading" it to avoid state collapse (which you cannot afford because because you still have to uncompute): that's where other ancilla(s) appears, as "service line(s)" to to read gate output value in a not destructively way. So, trying to understand and answer to your closing question, number of ancillas is related to dimension of output and intermediate results not to input cardinality (even because I believe that in more advanced designs ancillas can be reused) Share Improve this answer Follow answered May 25 at 8:11 baro77 1916 6 bronze badges 1 Thanks for the clarification –  mysran Commented May 27 at 5:10 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-gatequantum-algorithms See similar questions with these tags. The Overflow Blog What it takes to be a player in the international AI... Making the OWASP top ten in the vibe code... Featured on Meta Native Ads Coming To Comments Related 15 How to permute (reshuffle) an n-bit input? 2 FANOUT with Toffoli Gate 2 Is it correct to say that we need controlled gates because unitary matrices are reversible? 4 Input and output qubit notation in quantum gates 2 Quantum-Assisted Neural Network Training (Is my design reasonable?) 6 How does the CX gate work? 1 Can there be different gate implementations of same oracle implementation? 2 Not understanding gates being generated by MCX in "recursion" mode 0 Get Minimum Binary Value from Arbitrary Blackbox Oracle Result Hot Network Questions What can you do when authors refuse to share analysis code and the journal is not responsive? Can a semi-parametric survival model produce survival and hazard estimates past the max event time? Foxhole radio isn't picking up signal Rigid body cylinder falling through floor Examples of theorems of analysis with "algebraic proofs" Did Herakleios and Theodoros travel to China in 284 CE? Ten coins in straight lines Is German national television generally bias-free regarding German parties? List of possibilities from `apt install` is sorted randomly on Ubuntu 26.04 Are projector operators in quantum mechanics unitary? Can a natural pregnancy occur in space? Can it make sense to pay a child to learn a skill? What is the meaning of the poem "Fruit" by Nissim Ezekiel? How to recover proceeds from foreclosure sale after uncashed check was lost Ubuntu 26.04 - window positions not remembered Same Grid, Secret Enigma Can I transfer codes from Google Authenticator, without using a separate device? How would a r-strategy species control their population? Cross Grid Tangrams Optimal How do I need to drain my plumbing to replace a stop valve? While casting a spell with a casting time of 1 minute or longer, when do you provide the spell components? Plot a 3D function over a region with a hole Why is the practice of category theory such that size issues arise? Understanding Dedekind's construction of Real numbers from Rational numbers 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
    May 25, 2026
    Archived
    Jun 02, 2026
    Full Text
    ✓ Saved locally
    Open Original ↗