Skip to main content
SciNet
  • Home
  • All Courses
  • Calendar
  • Certificates
  • SciNet
    Main Site Documentation my.SciNet
  • CCDB
  • More
Close
Toggle search input
English
English Français
You are currently using guest access
Log in
SciNet
Home All Courses Calendar Certificates SciNet Collapse Expand
Main Site Documentation my.SciNet
CCDB
Expand all Collapse all
  1. Dashboard
  2. SCMP151 - Jun 2023
  3. Assignment 1

Assignment 1

Completion requirements
Opened: Monday, 5 June 2023, 12:00 AM
Due: Monday, 12 June 2023, 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. (Optional) Next class we will encounter the following gate:


Write a function that implements this gate using only CNOT and single-qubit \(R_Y(\theta)\) gates.


Contact site support
You are currently using guest access (Log in)
Data retention summary


All content on this website is made available under the Creative Commons Attribution 4.0 International licence, with the exception of all videos which are released under the Creative Commons Attribution-NoDerivatives 4.0 International licence.
Powered by Moodle