Can't understand the Fredkin gate well

  • Thread starter Thread starter James LeBron
  • Start date Start date
  • Tags Tags
    Gate
AI Thread Summary
The discussion centers on the universality of the Fredkin gate, specifically in constructing a NOR gate using two Fredkin gates. Initially, there was confusion regarding the inputs, particularly which inputs to use for the NOR operation. The correct implementation involves using the top input of the first Fredkin gate as input A and the top input of the second gate as input B. By setting the bottom inputs of the first gate (I1 and I2) to 1 and 0, respectively, the output is manipulated to achieve the desired NOR functionality. The process ensures that if both inputs A and B are 0, the output is true, aligning with the NOR gate's behavior. Ultimately, it is confirmed that only two Fredkin gates are required to construct a NOR gate effectively.
James LeBron
Messages
23
Reaction score
0
I'm having trouble understanding why the Fredkin gate is universal. I am getting nowhere when I am trying to build a NOR gate, which would prove that the Fredkin is universal.

(There's 3 inputs, C, I1, and I2)
 
Technology news on Phys.org
I believe you can implement a NOR gate using only 2 Fredkin gates.

Hint: use one of them as an inverter. You implement that by doing ...

And then the other one must be a ... And you implement that by doing ...
 
Thanks for the response. I actually figured it out earlier, since I was confused as to what the inputs meant at first. I thought that inputs A and B that were to be NOR-ed together were the bottom 2 inputs (aka I1 and I2 that I said on the first post) on the gate. But it's actually better to have input A be on the top of the first gate, and then input B on top of the second gate.

Then, for inputs I1 and I2 on the first bottom gate, set them as 1 and 0, respectively. That way, we pass on "A-not" to the second gate (If A = 0, it passes 1; If A = 1, the Fredkin gate switches I1 and I2 to pass on 0 to the next gate) as I1 (for the second gate), with I2 (for the second gate) being 0 and the second "true" input B being the top of the second gate. This way, if B = 1, then the second gate's I1 and I2 switch to pass on 0. If B = 0, then the output depends on "A-not". If A = 1, then it passes 0, which it should. If A = 0, then it passes 1, which it should, since a NOR is only true if both A and B are 0.

And you are right, only 2 Fredkin gates are necessary.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Thread 'Project Documentation'
Trying to package up a small bank account manager project that I have been tempering on for a while. One that is certainly worth something to me. Although I have created methods to whip up quick documents with all fields and properties. I would like something better to reference in order to express the mechanical functions. It is unclear to me about any standardized format for code documentation that exists. I have tried object orientated diagrams with shapes to try and express the...
Back
Top