Even though this seems to be a much asked basic question, I couldn't find a reputed answer to this:
- Implement a 3-qubit Toffoli gate using 3-qubit Fredkin gates.
The best I could do was using 4 gates to give
- Can we use less than 4 gates?
- In the above circuit how to get rid of the garbage values?(I have heard they are bad for interference)
I am new to quantum computing so please correct me if I am asking something that doesn't make sense.