Quantum Computing SEArchived Apr 18, 2026✓ Full text saved
The standard way to implement a reversible XOR gate is by means of a controlled-NOT gate or CNOT; this is the "standard quantum XOR operation". Physics.Stackexchange Is there a "standard quantum XNOR operation"? The XNOR gate (sometimes ENOR, EXNOR or NXOR and pronounced as Exclusive NOR) is a digital logic gate whose function is the logical complement of the exclusive OR (XOR) gate. Wikipedia Alternatively, what is the logical complement of the CNOT gate ?
Full text archived locally
✦ AI Summary· Claude Sonnet
What quantum gate is XNOR equivalent to?
Ask Question
Asked 7 years, 6 months ago
Modified today
Viewed 1k times
2
The standard way to implement a reversible XOR gate is by means of a controlled-NOT gate or CNOT; this is the "standard quantum XOR operation". Physics.Stackexchange
Is there a "standard quantum XNOR operation"?
The XNOR gate (sometimes ENOR, EXNOR or NXOR and pronounced as Exclusive NOR) is a digital logic gate whose function is the logical complement of the exclusive OR (XOR) gate. Wikipedia
Alternatively, what is the logical complement of the CNOT gate?
gate-synthesisuniversal-gatesquantum-gatefoundations
Share
Improve this question
Follow
edited Oct 1, 2018 at 1:21
asked Oct 1, 2018 at 1:00
user820789
3,44014
14 silver badges
47
47 bronze badges
Add a comment
2 Answers
Sorted by:
Highest score (default)
Date modified (newest first)
Date created (oldest first)
4
There is no "standard" method to implement XNOR, but it can be logically obtained by attaching a NOT gate (often called an X gate in quantum computing) to a logical XOR (which you know is implemented using CNOT). The X gate is applied to the target qubit of the CNOT.
To answer your question more directly, there is no standard "quantum gate" that is equivalent to XNOR. The best way to implement XNOR in a quantum circuit is with a CNOT and an X on the second qubit.
The reason why {CNOT,X} can give you a logical XNOR was explained in this answer to your own question 3.5 months ago.
Share
Improve this answer
Follow
edited Oct 1, 2018 at 1:20
answered Oct 1, 2018 at 1:14
user1271772 No more free time
14.6k2
2 gold badges
30
30 silver badges
79
79 bronze badges
cNOT⋅(1⊗X)
cNOT
⋅
(
1
⊗
𝑋
)
? What would the circuit look like (not sure which qubit would get the x)? Also, would it be accurate to call this 'gate' not CNOT? –
user820789
Commented
Oct 1, 2018 at 1:22
1
Yes that is correct! :) –
user1271772 No more free time
Commented
Oct 1, 2018 at 1:22
I would like to update this question to more accurately ask the question I haven't figured out how to succinctly articulate in a meaningful way & am wondering if perhaps you could advise, as you have already taken time to provide an answer. I had asked in the comments of the initial XNOR question about SWAP. Upon further reflection however, I'm not sure that is correct. I have also learned since that time that XOR == "Symmetric Difference" & XNOR == "Logical Biconditional." "Quantum Symmetric Difference" & "Quantum Logical Biconditional" both yield less than 5 results in Google.. –
user820789
Commented
Oct 6, 2018 at 3:37
I also have been looking into quantum, vector & fuzzy logics (De Morgan's laws seem to keep popping up a lot as well). The concepts of equality & equivalence also are recurrent. As you seem very versed in maths & quantum, perhaps you can understand what it is I am after, &/or identify the gaps in my current thinking & make a suggestion on what area(s) of math/quantum to focus on (has been on set/type theory + complexity classes; very interested in optical computing as well) in my continuing education. Thank you again for taking the time to provide so many great answers; I appreciate it! –
user820789
Commented
Oct 6, 2018 at 3:55
Add a comment
0
Using 2 CNOTS in parrallel should make the output a XNOR of the inputs ( A, B ). The box is the qubit being measured, and is measuring the XNOR of A and B. This version doesn't change the original values of A or B, and retains them for future use.
Share
Improve this answer
Follow
answered 31 mins ago
Zamiul Haque
1
New contributor
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
gate-synthesisuniversal-gatesquantum-gatefoundations
See similar questions with these tags.
The Overflow Blog
No country left behind with sovereign AI
Human input needed: take our survey on AI agents
Linked
13
Quantum XNOR Gate Construction
Related
38
How are quantum gates implemented in reality?
13
Quantum XNOR Gate Construction
26
Explicit Conversion Between Universal Gate Sets
5
How does quantum function parallelism work?
2
Is it correct to say that we need controlled gates because unitary matrices are reversible?
6
Is the quantum Fourier transform efficient if only one control-phase is allowed in the gate set
4
What does a quantum circuit look like after qiskit.compile() has been applied?
2
New mode of Quantum and - or gate
2
Constructing a controlled phase gate from given gates
Hot Network Questions
How to plot PDF where a parameter is a function of another variable
How to create a TikZ node whose top matches one node’s north and bottom matches another node’s south?
Why are spherical bearings called spherical
Is there a way to automatically create multiple pages inserting a new name in each one?
Why does my Highlander Hybrid start and stop the engine multiple times rapidly at a traffic light at the bottom of a hill?
Sort strings containing valid and invalid substrings by substring groups
Are atheists correct in this claim involving 2 Samuel 12:11?
Callout a curve with another image
Is i.i.d. after standardisation still i.i.d.?
How can I mount furniture to walls covered in foam panels?
Finding the area of the shaded region inside the square and the rectangle in an more elegant way
Find all 8-digit numbers in which there is 1 digit between the 1s, 2 digits between the 2s, 3 digits between the 3s, and 4 digits between the 4s.
Sci-fi story about Earth reaching absolute zero
How does pupil shape affect vision?
Can a constant current LED driver be used with 12V or 24V incandescent bulbs?
Could Artemis 2 have left its unused fuel in earth orbit for future use?
How to ask supervisor for permission to do a tech internship without offending him
Approximately pi
Is a zero inflated beta regression model the right fit for my longitudinal proportion data?
Are there any useful criteria for what constitutes using AI to make music?
Can the new legislative supermajority in Hungary get rid of president Sulyok before his term ends, even if he doesn't voluntarily resign?
What was the cause of 10 British warships disappearing, that Pierre Denys de Montfort attributed to colossal octopuses?
What does "dollying" mean in this context?
Is there any construct valid since C++98 that behaves differently between C++20 and C++23?
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