Skip to main content
SciNet
  • Home
  • Calendar
  • Certificates
  • SciNet
    Main Site Documentation my.SciNet Old Education Site
  • CCDB
  • More
Close
Toggle search input
English
English Français
You are currently using guest access
Log in
Home Calendar Certificates SciNet Collapse Expand
Main Site Documentation my.SciNet Old Education Site
CCDB
  1. SCMP151 - Jul 2022
  2. Lecture 1, hands on 2
Assignment

Lecture 1, hands on 2

Completion requirements
Opened: Monday, 25 July 2022, 12:00 AM
Due: Monday, 1 August 2022, 12:00 AM

1. Create two-qubit functions that return the following quantum states:

  • \(\left|\psi_+\right\rangle = \frac{1}{\sqrt{2}}\left(\left|00\right\rangle + \left|11\right\rangle\right)\)
  • \(\left|\psi_-\right\rangle = \frac{1}{\sqrt{2}}\left(\left|00\right\rangle - \left|11\right\rangle\right)\)
  • \(\left|\phi_+\right\rangle = \frac{1}{\sqrt{2}}\left(\left|01\right\rangle + \left|10\right\rangle\right)\)
  • \(\left|\phi_-\right\rangle = \frac{1}{\sqrt{2}}\left(\left|01\right\rangle - \left|10\right\rangle\right)\)


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).



Contact site support
You are currently using guest access (Log in)
Data retention summary
Get the mobile app
Powered by Moodle