1. Create two-qubit functions that return the following quantum states:
2. Write a function that implements the SWAP gate, using only CNOT gates. How many CNOT gates are needed?
3. Write a function which implements a Controlled-controlled-CNOT gate (left image) using only Toffoli gates (centre) and an auxiliary qubit (right).