How do I convert CC-NOT gates to OR operators?

  • Thread starter Thread starter khkwang
  • Start date Start date
  • Tags Tags
    Convert Operators
Click For Summary
SUMMARY

The discussion focuses on converting CC-NOT gates to OR operators using Fredkin Gates. The user successfully derived AND and XOR gates but struggled with the OR operation. The solution involves using the expression NOT((NOT(INPUT1)) AND (NOT(INPUT2))) to achieve the OR functionality. This method is confirmed as a straightforward approach to recreate OR gates from existing logic gates.

PREREQUISITES
  • Understanding of Fredkin Gates and their properties
  • Knowledge of basic logic gate operations (AND, OR, NOT)
  • Familiarity with XOR gate construction
  • Basic understanding of truth tables
NEXT STEPS
  • Research the implementation of Fredkin Gates in quantum computing
  • Study the Feynman Lectures in Computing for deeper insights
  • Explore advanced logic gate constructions using CC-NOT gates
  • Learn about the applications of universal gates in digital circuits
USEFUL FOR

This discussion is beneficial for computer scientists, electrical engineers, and anyone interested in quantum computing and logic gate design.

khkwang
Messages
57
Reaction score
0
Fredkin Gates are supposed to be universal. So far I've gotten AND, OR and NOT out of them but I can't figure out XOR. Any help?

I know that A XOR B = (A AND NOT B) OR (B AND NOT A), but trying to recreate that with Fredkin Gates is not very elegant... is that the only way?

Edit: I guess I can't change the title of my thread...

-----------------------------------------------------------------------------------------
nvm this bottom part of this post, it's been solved already.

According to Feynman Lectures in Computing, by using only C-NOT, CC-NOT and NOT gates we can recreate AND, OR and XOR gates.

I understand how to create AND and XOR, but I can't work out the OR. I spent a good few hours pondering and trying out different truth tables but I just don't get it. Can anyone demonstrate a way?
 
Last edited:
Technology news on Phys.org
If you have AND and NOT, then NOT ( (NOT (INPUT1)) AND (NOT (INPUT2)) ) = ((INPUT1) OR (INPUT2))
 
Ahh so simple. Can't believe I forgot something so basic. Thanks, you actually helped me clear up a whole other question as well.
 
Last edited:
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...

Similar threads

Replies
10
Views
3K
  • · Replies 14 ·
Replies
14
Views
3K
Replies
4
Views
6K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
27K
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
55
Views
6K