Skip to main content

Quantum Class 28, Thurs 2020-12-14

1 Final project presentations, session 3

  1. Ji-hann H & John R

  2. Yuhui Z

  3. Linnaea R & Cortes B & Manusri V https://youtu.be/SSgXxrjysm0

2 Good luck in the future

Perhaps you found this course worthwhile; it was fun to teach.

If so, could you fill out the course survey; that helps me.

I'm available in the future, even after you leave RPI, to discuss any legal and ethical topic.

Quantum Class 27, Mon 2020-12-07

2 Quantum Supremacy News

Connor McGowan writes,

I thought this seemed blog-worthy: https://interestingengineering.com/chinas-light-measuring-quantum-computer-captures-quantum-supremacy

A photon-based quantum computer in China just achieved quantum supremacy last week.

3 Course surveys

Course surveys are open. I open you've enjoyed this course. I worked hard to make it interesting and relevant. If you thought it worthwhile, could you please fill out the survey say so. That helps me a lot inside RPI. Very few students fill out the surveys, and so each response has an outsize weight.

Thanks.

Quantum Class 26, Thu 2020-12-03

1 Even more final project presentations, re-updated

1.1 Thurs Dec 3

  1. David P

  2. Connor M & Siddharth S

  3. Justin C https://www.youtube.com/watch?v=h4yH9Kth_8k&feature=youtu.beview?usp=sharing

  4. Joseph D

1.2 Mon Dec 7

  1. Cohen D

  2. Amanda M

  3. Connor G

  4. Nik M & Nathanial P & Chace W & Ricardo D

  5. Isaac P

1.3 Thurs Dec 10

  1. Ji-hann H & John R

  2. Yuhui Z

  3. Linnaea R & Cortes B & Manusri V https://youtu.be/SSgXxrjysm0

Quantum Class 25, Mon 2020-11-30

1 Final project presentations, updated

This satisfies all late requests.

1.1 Thurs Dec 3

  1. David P

  2. Connor G & Siddharth S

  3. Justin C https://www.youtube.com/watch?v=h4yH9Kth_8k&feature=youtu.be

  4. Joseph D

  5. Ricardo D

1.2 Mon Dec 7

  1. Cohen D

  2. Amanda M

  3. Connor M

  4. Nik M

  5. Nathanial P

  6. Isaac P

1.3 Thurs Dec 10

  1. Linnaea R & Cortes B & Manusri V

  2. Ji-hann H & John R

  3. Chace W

  4. Yuhui Z

2 Prof Sufei Shi

Prof Shi, Chemical and Biological Engineering, will tell us what he is doing in Ultrafast Nanoscale Optoelectronics, Investigating light matter interaction in low dimensional quantum materials. This is his web site.

3 My spring class in parallel computing

If you liked this class, in Spring 2021, I am teaching ECSE-4740-01 APPL PARALLEL COMP FOR ENGRS. It will be completely virtual. Here is a poster.

Quantum Class 24, Mon 2020-11-23

1 Prof Rena Huang

We are fortunate that Prof Rena Huang will talk to us today. "Her current research activities focus on Si photonic devices and integration, on-chip slow-light waveguides, metastructure arrays, and high contrast gratings for applications in phased array antennas, optical neuromorphic computing, subwavelength imaging etc."

2 Final project presentations

The four people who requested a specific date have it.

If anyone really hates the assigned day, then ask.

No one has been specific about teaming, which is optional. If you team up, mention your preferred dates, and I'll see.

2.1 Thurs Dec 3

David P Connor G Cortes B Justin C Joseph D Ricardo D

2.2 Mon Dec 7

Cohen D Ji-hann H Amanda M Connor M Nik M Nathanial P Isaac P

2.3 Thurs Dec 10

John R Linnaea R Siddharth S Manusri V Chace W Yuhui Z

Quantum Class 23, Thurs 2020-11-19

1 Final project presentations

If you have a preferred date, email me before Monday. I will make assignments then.

2 Grade estimates

Homeworks up through 6 have been graded and published on gradescope. Your submissions were excellent.

If the semester ended today, everyone would get A- or A.

3 Edwin Fohtung

Prof Edwin Fohtung, The Fohtung Research Group, Materials Science and Engineering at RPI, will give a guest talk on his research interests in quantum computing.

4 Honeywell

  1. H1: trapped ion.

  2. 10 qbits,

    1. full connectivity,

    2. can read isolated qbits in mid-computation,

    3. hi-res rotations.

  3. JP Morgan experimenting with it.

  4. Honeywell Unveils Model H1, Quantum Computing As A Service, 3:00, 10/29/20.

  5. Quantum Computer from Honeywell, 8:59, 6/22/20. Is Honeywell quantum computer the best performing?

Quantum Class 22, Mon 2020-11-16

1 Remaining classes

23 Thurs 11/19

guest speaker Edwin Fohtung WRF filling in remaining time for each class.

24 Mon 11/23

guest speaker Rena Huang

25 Mon 11/30

guest speaker Sufei Shi

26 Thurs 12/3

student presentations

27 Mon 12/7

student presentations

28 Mon 12/10

student presentations

2 Final project

  1. Because of the unexpected popularity of this class, there's no time for a second round of quick student presentations. Instead, work a little harder on the final project.

  2. The final project may be done in teams of up to three students.

  3. Deliverables:

    1. Video presentation to class, in one of the last 3 class days.

    2. Presentation length: 1 student - approx 12 min, 2 students: 15-20, 3: 20-30.

    3. Eight page paper describing the project, written using the style of an IEEE or ACM journal or conference.

    4. It will be due as a PDF file on Dec 11, the last class day.

    5. Sign up by emailing me your team members and preferred dates (in preferred order if you care). It's helpful if the subject contains quantum.

4 Trapped ion quantum computing

  1. competitor to superconducting transmons (JJs).

  2. https://en.wikipedia.org/wiki/Trapped_ion_quantum_computer

  3. Proponents say that it's better than transmon qbits.

  4. What is an Ion Trap Quantum Computer? 2:30, 2/19/18.

4.1 IonQ

  1. founders from Maryland/College Park and Duke.

  2. trapped ion

  3. 32 qbits.

  4. low error rate

  5. excellent quantum volume

  6. will be available from Microsoft Azure and Amazon AWS Braket.

  7. https://en.wikipedia.org/wiki/IonQ

  8. https://ionq.com/

  9. https://ionq.com/technology

    "To date, we’ve run single-qubit gates on a 79 ion chain, and complex algorithms on chains of up to 11 ions."

  10. https://ionq.com/posts/october-01-2020-most-powerful-quantum-computer

  11. Startup IonQ announces next-gen quantum computing system 1:49.

Quantum Homework 8, Mon 2020-11-16

Due 2020-11-30 (2 weeks) 4:45pm in gradescope.

Teams of up to 3 are ok.

This project continues quantum computing on Amazon Braket .

  1. 10 points. Use actual D-Wave hardware.

    1. Create or find a simple program. Run it.

    2. Report the results.

    3. Report your observations. Easy? Hard? Recommend to others? Not? Etc.

  2. 10 points. Repeat with actual IonQ or Rigetti hardware.

  3. 5 points. Compare them, to the extend reasonable given how different they are.

Total: 25. points.

Quantum Class 21, Thurs 2020-11-12

Quantum Computing Summary, Wed 2020-11-11

Prepared for RPI quantum seminar, 11/11/20

This page:

https://wrf.ecse.rpi.edu/Teaching/quantum-f2020/posts/quantum-summary.html

../files/quantum-summary-url.png

I've included lots of links for people who wish to explore further.

1 Intro

Alice laughed. "There's no use trying," she said: "one can't believe impossible things." "I daresay you haven't had much practice," said the Queen. "When I was your age, I always did it for half-an-hour a day. Why, sometimes I've believed as many as six impossible things before breakfast." - Through the Looking-Glass, and What Alice Found There (1871), by Lewis Carroll (Charles Lutwidge Dodgson).

1.1 Disclaimer

While abstracting this summary from a large collection of disparate info, I might have made errors. However I believe this to be an unbiased and accurate summary.

1.2 My Context

  1. I'm developing and teaching a new course that I proposed, ECSE-4964-01 Quantum Computer Programming.

  2. 19 students who seem to like it.

  3. Several people in this meet are giving guest lectures (thanks!). Everyone here is welcome.

  4. RPI paying me to learn (thanks!); however there's a lot I still don't know.

1.3 Brief History

The WIRED Guide to Quantum Computing 08.24.2018. Nice non-too-technical summary of the history. The theory preceded the realization. This happens sometimes, e.g., with atomic energy. From there:

1980

Physicist Paul Benioff suggests quantum mechanics could be used for computation.

1981

Nobel-winning physicist Richard Feynman, at Caltech, coins the term quantum computer.

1985

Physicist David Deutsch, at Oxford, maps out how a quantum computer would operate, a blueprint that underpins the nascent industry of today.

1994

Mathematician Peter Shor, at Bell Labs, writes an algorithm that could tap a quantum computer’s power to break widely used forms of encryption.

2007

D-Wave, a Canadian startup, announces a quantum computing chip it says can solve Sudoku puzzles, triggering years of debate over whether the company’s technology really works.

2013 Google teams up with NASA to fund a lab to try out D-Wave’s hardware.

2014

Google hires the professor behind some of the best quantum computer hardware yet to lead its new quantum hardware lab.

2016

IBM puts some of its prototype quantum processors on the internet for anyone to experiment with, saying programmers need to get ready to write quantum code.

2017

Startup Rigetti opens its own quantum computer fabrication facility to build prototype hardware and compete with Google and IBM.

1.3.1 Intro sites

  1. Feynman was the first to propose the theoretical idea of a quantum computer.

    Richard Feynman - Quantum Mechanics 4:01.

    Extracted from HD Feynman: FUN TO IMAGINE complete 1080p 1:06:49. Recorded in 1983.

  2. "Spooky" physics | Leo Kouwenhoven | TEDxDelft (18:00)

  3. David Deutsch - Why is the Quantum so Strange? (8:43)

  4. A beginner's guide to quantum computing | Shohini Ghose https://www.youtube.com/watch?v=QuR969uMICM 10:04

  5. Quantum Computing in Under 11 Minutes daytonellwanger https://www.youtube.com/watch?v=TAzZKAdX2Tw 10:56 more technical

  6. https://towardsdatascience.com/introduction-to-quantum-programming-a19aa0b923a9?gi=69d861e26d80

  7. https://medium.com/@jonathan_hui/qc-programming-with-quantum-gates-8996b667d256

  8. https://medium.com/@jonathan_hui/qc-programming-with-quantum-gates-2-qubit-operator-871528d136db

  9. https://www.cl.cam.ac.uk/teaching/0910/QuantComp/notes.pdf

    1. They have a nice description of measurement starting at slide 10.

    2. Each measurement operator has a basis vector set.

    3. The operator represents the qbit as a linear combo of the basis vectors.

    4. Then it projects the qbit onto one of the basis vectors, with probability being the length of that component.

    5. It is possible for two different qbits to measure the same in some basis, but measure different in a different basis.

  10. Quantum Algorithms (2:52)

    Which problems can quantum computers solve exponentially faster than classical computers? David Gosset, IBM quantum computing research scientist, explains why algorithms are key to finding out.

  11. Can we make quantum technology work? | Leo Kouwenhoven | TEDxAmsterdam (18:19)

  12. Quantum Computing Concepts – Quantum Hardware (3:22)

  13. Experiment with Basic Quantum Algorithms (Ali Javadi-Abhari, ISCA 2018) (19:05)

  14. Quantum Computing for Babies

2 Quantum properties

2.1 Entanglement

  1. Crazy counterintuitive idea that's the basis for quantum speedup.

  2. Classical metaphor for entanglement:

    1. Start with a piece of paper.

    2. Tear it into two halves.

    3. Put each half into an envelope, seal them, and mix them up, so that you can't tell which half is in which envelope.

    4. Address and mail one envelope to a friend in Australia, and the other to a friend in Greenland.

    5. When the Australian opens his envelope, he knows what the Greenlander will find in his.

    6. However that doesn't let the Australian send any info to the Greenlander, or vv.

    7. This has been demonstrated with real qbits transported 1000 miles apart.

    8. Entanglement means that if you measure one qbit then what you observe restricts what would be observed when you measure the other qbit.

    9. However that does not let you communicate.

  3. Entanglement and superposition do funny things to operations. Consider the Controlled NOT gate. It has 2 inputs, x and y.

    1. Classically, y is negated iff x=1. x doesn't change.

    2. If x and y are superposed with a Hadamard basis, then y can affect x.

2.2 No Cloning

Cloning (copying) works in the classical world but not in the quantum world.

Classically, you can easily clone a bit. Consider a 2-bit system, $x, y$. Each bit can be 0 or 1. All 4 combos are possible. Represent the state with a 4-vector

$s=\begin{vmatrix} a_0\\a_1\\a_2\\a_3\end{vmatrix}$

where exactly one $a_i=1$ and the other three are 0. E.g., if $a_3=1$ then $x=y=1$.

Here's a 2-input, 2-output circuit that clones the first bit.

$x'=x\\y'=x$

Its truth table is

x y | x'y'
0 0 | 0 0
0 1 | 0 0
1 0 | 1 1
1 1 | 1 1

Represent the operation by a matrix multiplication on s. The matrix M is:

1 1 0 0
0 0 0 0
0 0 0 0
0 0 1 1

That is, the final state is $s'_i = \sum_j M_{ij} s_j$

However, M is singular. For quantum operations, M has to be unitary. So this is not a legal quantum circuit. Let's try again.

The better way is the 3-input Toffoli gate. The function is

$x'=x \\ y'=y \\ z'= z \oplus xy$

The truth table is

x y z | x'y'z'
0 0 0 | 0 0 0
0 0 1 | 0 0 1
0 1 0 | 0 1 0
0 1 1 | 0 1 1
1 0 0 | 1 0 0
1 0 1 | 1 0 1
1 1 0 | 1 1 1
1 1 1 | 1 1 0

The matrix is Eqn 5.62 on page 155.:

1 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0
0 0 1 0 0 0 0 0
0 0 0 1 0 0 0 0
0 0 0 0 1 0 0 0
0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 1
0 0 0 0 0 0 1 0

Let x=1, z=0. Then:

x'= 1
y'= y
z'= y

and we've cloned y in the classical case, where the inputs are each 0 or 1.

This matrix is nonsingular and so is also legal in a quantum circuit.

(Looking ahead a little), try $y= \frac{1}{\sqrt{2}} | 0> + \frac{1}{\sqrt{2}} | 1>$, which is an equal superposition of 0 and 1. Using x=1, z=0, the input will be

$\frac{ | 1, 0, 0> + | 1, 1, 0>}{\sqrt{2}}$

and the state is

$(0, 0, 0, 0, \frac{1}{\sqrt{2}} , 0, \frac{1}{\sqrt{2}} , 0)^T$

That's an equal superposition of 2 of the possible 8 classical input states.

Multiplying that by the matrix gives

$\frac{ | 1, 0, 0> + | 1, 1, 1>}{\sqrt{2}}$

Instead of cloning y into z, this entangled y and z.

An operation that is simple on classical input can be more complicated on quantum inputs.

This isn't new; we already know how to entangle two qbits.

Engangling isn't the same as cloning. The point of cloning is that we could operate on the two bits separately. If they're engangled, operating on one affects the other.

2.3 Phase

  1. You cannot measure the phase of qbit.

  2. You can measure the relative phase of 2 qbits.

  3. Many algorithms encode the answer as a phase shift of a qbit.

  4. Phase kickback means that a gate that runs one way, e.g., the control bit affects an output bit, can be made to run the other way, e.g., the control bit is changed, by making the other bit a Hadamad basis.

  5. Phase Kickback V Abhijith Rao

  6. Qiskit Phase Kickback

2.4 Quantum supremacy

  1. Coined by Preskill in 2012.

  2. Google claimed this in Oct 2019 on a specific (artificial?) problem; see Google section.

  3. IBM disagrees.

2.5 Cloud-based computing

  1. IBM started this.

  2. Alibaba followed.

  3. Then D-Wave Leap, Rigetti, Amazon AWS Braket and Quantum solutions lab, Microsoft Azure.

  4. IBM's intent is to entangle their computers in different sites; exponentially increasing power.

3 Technologies

  1. Quantum Materials | QuTech Academy 8:57.

/files/ionq_hws.png

3.2 Trapped Ion

  1. https://en.wikipedia.org/wiki/Trapped_ion_quantum_computer

  2. Proponents say that it's better than transmon qbits.

  3. https://ionq.com/technology

    "To date, we’ve run single-qubit gates on a 79 ion chain, and complex algorithms on chains of up to 11 ions."

3.3 Quantum annealing

  1. This is not comparable to quantum gates and circuits like IBM has.

  2. It minimizes a function by testing many solutions in parallel.

  3. See details in the D-Wave section.

  4. Qbit count is not comparable to gate models.

3.4 Photonics

  1. Operates at room temperature.

  2. See Xanadu below.

4 Companies - Primary

These companies have their own hardware.

4.1 IBM

4.1.1 Summary

  1. They have several quantum computers, up to 53 qbits.

  2. The older ones are freely available on the web; see https://quantum-computing.ibm.com/

  3. Note that you can put gates between only adjacent qbits.

  4. You submit a batch job and get emailed when it runs.

  5. IBM github site: https://github.com/Qiskit with

    1. a free simulator.

      It doesn't match all the physical complexity of the real computer, but it's a good start.

    2. and tutorials and presentations.

  6. and a SW development framework. https://qiskit.org/

  7. You can create a quantum computation program either by

    1. designing a circuit, or

    2. using a programming language.

4.1.4 IBM Quantum experience

  1. When you design a circuit here, you don't need to simulate it elsewhere. It shows you the probabilities.

  2. Dual view: you can see and edit both the circuit and the QASM code.

  3. There are some sample programs in https://github.com/Qiskit/openqasm.git

  4. Example circuits in https://quantum-computing.ibm.com/docs/iqx/example-circuits .

4.2 Intel

  1. Tangle Lake has 49 superconducting qbits.

  2. Produced in Oregon.

  3. Partners with QuTech in Netherlands.

  4. https://www.intel.com/content/www/us/en/research/quantum-computing.html

4.4 D-Wave

  1. https://en.wikipedia.org/wiki/D-Wave_Systems

  2. They make a different type of quantum computer, called a quantum annealer. They have been in the news lately, e.g.,

  3. https://arstechnica.com/science/2020/09/d-wave-releases-its-next-generation-quantum-annealing-chip/

  4. What is Quantum Annealing? 6:14.

  5. How The Quantum Annealing Process Works 6:09.

  6. Quantum Programming 101: Solving a Problem From End to End | D-Wave Webinar 54:25.

    "Want to learn how to program a quantum computer? In this webinar, we explain how to do so by running through a complete, simple example. We explain how to formulate the problem, how to write it, and how to tune it for best results. "

    "This webinar is intended for those with little or no experience programming on a D-Wave quantum computer. After watching, get free time on Leap, the quantum cloud service at https://cloud.dwavesys.com/leap/signup/ "

  7. Slides from Programming Quantum Computers: A Primer with IBM Q and D-Wave Exercises by Frank Mueller, Patrick Dreher, Greg Byrd held at PPoPP (Feb 2019) ASPLOS'19 (Apr 2019),

    Part 3: D-Wave -- Adiabatic Quantum Programming

  8. D-Wave factoring tutorial and other demos

    including Jupyter notebooks (you have to login for them).

4.5 IonQ

  1. founders from Maryland/College Park and Duke.

  2. trapped ion

  3. 32 qbits.

  4. low error rate

  5. excellent quantum volume

  6. will be available from Microsoft Azure and Amazon AWS Braket.

  7. https://ionq.com/

  8. https://en.wikipedia.org/wiki/IonQ

  9. https://ionq.com/posts/october-01-2020-most-powerful-quantum-computer

4.6 Honeywell

  1. H1: trapped ion.

  2. 10 qbits,

    1. full connectivity,

    2. can read isolated qbits in mid-computation,

    3. hi-res rotations.

  3. JP Morgan experimenting with it.

4.7 Rigetti

  1. Berkeley-based

  2. founder is ex-IBM

  3. https://en.wikipedia.org/wiki/Rigetti_Computing

  4. https://www.rigetti.com/

  5. has lots of tools

  6. available via AWS etc

  7. technical details are sparse

  8. has been absorbing venture capital

  9. https://techcrunch.com/2020/03/05/rigetti-computing-took-a-71-million-down-round-because-quantum-computing-is-hard/

    "Recently, investors are gambling more on the middleware layer of a quantum computing stack. These are companies like Zapata, Q-CTRL, Quantum Machines and Aliro, which improve the performance of quantum computers and create an easier user experience"

  10. makes optimistic promises (8/8/18):

    https://medium.com/rigetti/the-rigetti-128-qubit-chip-and-what-it-means-for-quantum-df757d1b71ea

4.8 Xanadu

  1. Xanadu Quantum Cloud

  2. https://venturebeat.com/2020/09/02/xanadu-photonics-quantum-cloud-platform/

  3. Uses photonics.

  4. Operates primarily at room temperature.

  5. Up to 24 qbits, gate depth of 12.

  6. Has free SW tools, some of which can compile to other quantum technologies.

  7. Expected good applications: graphs and networks, machine learning, and quantum chemistry.

  8. They expect to scale up better than competing technologies.

4.9 Others

  1. Alibaba

  2. 1QBit

  3. CQC

  4. QC Ware

  5. QSimulate

  6. Quantum Circuits

  7. Rahko

  8. Zapata

See https://www.explainingcomputers.com/quantum.html

5 Companies - Aggregators

These companies resell others' computers as a cloud service.

5.1 Amazon

  1. https://aws.amazon.com/braket/

    "Amazon Braket is a fully managed quantum computing service that helps researchers and developers get started with the technology to accelerate research and discovery. Amazon Braket provides a development environment for you to explore and build quantum algorithms, test them on quantum circuit simulators, and run them on different quantum hardware technologies."

    "...quantum annealers from D-Wave, and gate-based computers from Rigetti and IonQ."

5.2 Microsoft

  1. They offer a cloud service on 3 platforms: Honeywell, IonQ, QCI.

    Microsoft Is Taking Quantum Computers to the Cloud

  2. Microsoft Quantum

    A lot of stuff, with a low S/N.

  3. Microsoft quantum blog

  4. Azure Quantum Developer Workshop. 5:05:25.

    A little diffuse.

  5. For faster quantum computing, Microsoft builds a better qubit 11/7/2019.

  6. Microsoft Quantum Documentation gateway to a lot of stuff.

  7. Microsoft, e.g. Quantum Computing for Computer Scientists 1:28:22.

    This is the same viewpoint as the textbook, but the speaker is different.

    This talk discards hand-wavy pop-science metaphors and answers a simple question: from a computer science perspective, how can a quantum computer outperform a classical computer? Attendees will learn the following:

    • Representing computation with basic linear algebra (matrices and vectors)

    • The computational workings of qbits, superposition, and quantum logic gates

    • Solving the Deutsch oracle problem: the simplest problem where a quantum computer outperforms classical methods

    • Bonus topics: quantum entanglement and teleportation

    The talk concludes with a live demonstration of quantum entanglement on a real-world quantum computer, and a demo of the Deutsch oracle problem implemented in Q# with the Microsoft Quantum Development Kit. This talk assumes no prerequisite knowledge, although comfort with basic linear algebra (matrices, vectors, matrix multiplication) will ease understanding.

    See more at https://www.microsoft.com/en-us/research/video/quantum-computing-computer-scientists/

6 Algorithms

  1. Good ref is Chapter 6, Algorithms of Quantum Computing for Computer Scientists, published in 2000. Algorithms don't change fast. It does omit new things like HHL.

  2. For these examples, the quantum algorithm is quite different from the classical algorithm, and is asymptotically faster.

  3. Current research is deciding what algorithms can be made faster.

  4. p 172: Any function can be made invertible by adding a control bit.

  5. Major categories:

    1. Cryptography

    2. Quantum search

    3. Quantum simulation

    4. Quantum annealing and adiabatic optimization

    Nice summary: https://en.wikipedia.org/wiki/Quantum_computing

  6. Algorithm summary:

    1. Some, but not all, are faster.

    2. Bounded-error quantum polynomial time (BQP)

      1. "is the class of decision problems solvable by a quantum computer in polynomial time, with an error probability of at most 1/3 for all instances" - https://en.wikipedia.org/wiki/BQP

      2. Includes integer factorization and discrete log.

      3. Relation to NP is unknown (big unsolved problem).

    3. Searching problems:

      1. Find the answer to a puzzle.

      2. Math examples: factor an integer, solve a polynonial equation.

      3. Testing validity of a putative solution is easy.

      4. Finding that putative solution, naively, requires testing all possibilities.

      5. Quantum computation can solve some searching problems faster.

      6. This is probabilistic or noisy; often the found solution is wrong.

      7. So you repeat the computation enough times that the error rate is acceptably low.

      8. Some classical algorithms are similar. There is an excellent probabilistic primality algorithm.

      9. The quantum algorithms are quite complex. (i.e., I'm still learning them.)

    4. Algorithms, another view

      1. Hadamard matrix rotates the pure state to an entangled superposition.

      2. Then we operate in parallel on each state in the superposition.

      3. Finally we separate out the desired answer.

    5. Grover's algorithm:

      1. https://en.wikipedia.org/wiki/Grover%27s_algorithm

      2. Given a black box with N inputs and 1 output.

      3. Exactly one input makes the output 1.

      4. Problem: which one?

      5. Classical solution: Try each input, T=N.

      6. Quantum: $T=\sqrt(N)$.

      7. Probabilistic.

      8. Apps: mean, median, reverse a crypto hash, find collisions, generate false blocks.

      9. Can extend to quantum partial search.

      10. Grover's algorithm is optimal.

      11. This suggests that NP is not in BQP .

    6. Shor's algorithm:

      1. Factorize an integer.

      2. in BQP.

      3. almost exponentially faster than best classical algorithm.

      4. Largest examples I can find:

        1. 56153 = 233 × 241.

        2. https://medium.com/@aditya.yadav/rsa-2048-cracked-using-shors-algorithm-on-a-quantum-computer-660cb2297a95

7 Algorithm details

7.1 Deutsch

  1. We have a black box F(x) -> x'.

  2. We're told that F is either balanced or constant.

  3. How to determine which?

  4. We can input any x and see the result.

  5. Classically: eval F(0) and F(1).

  6. That took two evals and some comparisons.

  7. All that matters is the number of evals. We assume that they're slower than everything else.

  8. Quantumly (quantumicly?) we can determine which type F is with only one eval plus some extra matrices.

7.2 Deutsch - Jozsa

Now $F: \{0,1\}^n \to \{0,1\}$.

We're told that it's either constant or balanced. It's not neither.

Which is it?

Classically, we need n/2+1 evals of F.

Quantumly, we need only 1.

7.3 Simon's periodicity

Blackbox $F: \{0,1\}^n \to \{0,1\}^n$

For some unknown $c$, $F(x\oplus c) = F(x)$.

Determine $c$.

7.5 Deutsch-Jozsa

This algorithm is deterministic.

  1. https://www.quantiki.org/wiki/deutsch-jozsa-algorithm

    Quick summary; doesn't say why it works.

  2. https://qiskit.org/textbook/ch-algorithms/deutsch-jozsa.html

    This is an intro to Qiskit. The terminology is confusing. E.g., Register 1 has q0 q1 q2. Register 2 has q3. The run buttons don't seem to work.

  3. https://en.wikipedia.org/wiki/Deutsch%E2%80%93Jozsa_algorithm

    This is a nice detailed description.

8 Software

8.1 General

  1. A difficulty is to compile to the limited connectivity of the machine

  2. Open-Source Quantum Software Projects

  3. ProjectQ open-source software framework for quantum computing.

  4. Programming Quantum Computers: A Primer with IBM Q and D-Wave Exercises . Tutorial given at a few conferences.

8.2 Middleware

  1. https://www.hpcwire.com/off-the-wire/quantum-computing-inc-releases-version-1-1-of-mukai-middleware/

  2. https://tbri.com/webinars/middleware-the-quantum-computing-differentiator/ "An integral piece of quantum computing’s success is the middleware bridging existing code and algorithms to the new logical circuitry being established that sits on top of the quantum circuits. This integration and abstraction will allow the technology to process complex algorithms to provide the outcomes the hardware enables."

9 More info

9.1 QuTech Academy

  1. excellent videos from this Delft research group.

  2. QCI

  3. Per Delsing: Superconducting qubits as artificial atoms 28:59.

    He's describing a different computer from IBM's.

  4. The Taming of the Superconducting Qubit: A Tale of Loss 35:47.

    Presenter: Conal Murray, Research Staff Member, IBM Research

    The potential of quantum computing to enable new ways of solving problems considered intractable on classical computing platforms relies on our understanding of how qubits operate. Qubit scaling follows different metrics than those associated with classical computing, driven by the requirement that the fragile states they possess can be retained for sufficiently long times. After a brief introduction into superconducting transmon qubits, I will discuss how dielectric loss impacts their relaxation times and how we can effectively model such behavior using analytical and computational approaches. The resulting analysis provides guidance into the design aspects associated with such qubits. A secondary issue that follows from manufacturing greater numbers of qubits involves unwanted communication among them. In particular, resonance modes generated in the substrate on which they reside can limit their operating frequencies. It is known that incorporating grounded, through-silicon vias can increase the corresponding cutoff frequency within the substrate. I will show how we can predict the resulting spectrum by considering the array of vias as an effective photonic crystal to arrive at a fundamental frequency dependent on the particulars of the via geometry.

    http://meetings.aps.org/Meeting/MAR20/Session/P28.2

10 Summary

  1. Quantum computing hasn't solidly proved itself yet. However it's now in the engineering phase - realizing what we basically know how to do.

  2. IMO the physicists have done it again (last time was atomic energy). This will be a fundamental transformation of computing.

  3. Certain searching algorithms will be exponentially faster.

  4. Algorithm design still needs research. Algorithms are quite complex.

  5. Major application areas like drug design.

  6. Several viable technologies competing.

  7. Several HW companies.

  8. Competing toolsets being developed.

  9. Various service platforms to provide simulators and the HW.

  10. Recommendation (remember I'm SW):

    1. Be agnostic wrt platform (we don't know who will win).

    2. Have people use AWS etc to learn and develop apps. No capital investment needed.

    3. Work developing and/or using middleware, which is newer area.

    4. RPI-specific:

      1. Merely playing catchup is a losing game. Need something new.

      2. Assume that IBM etc will make the computers. The big problem with new HW is always how to use it. The ability of customers to use a new tool can determine whether it succeeds.

      3. Include other RPI programs?

        1. Gamify this using Game and Sim?

        2. Work with tetherless world?

      4. I'm still thinking.

Quantum Class 20, Mon 2020-11-09

1 Quantum computing at SC20 (Supercomputing)

Optional enrichment material.

It costs to register for this, except the equipment show.

It's this week and next week.

One use for this is to find interesting presentations, and then search for free versions.

  1. The International Conference for High Performance Computing, Networking, Storage, and Analysis

  2. Quantum Futures session

2 Google

  1. Google quantum General web site.

  2. Day 1 opening keynote by Hartmut Neven (Quantum Summer Symposium 2020) 29:58.

    We'll watch some or all, depending on how interesting it it.

  3. QuantumCasts link to some videos, including the following.

  4. Quantum supremacy explained (QuantumCasts) 4:26.

  5. Introduction to Quantum Chess (Quantum Summer Symposium 2020) 13:53.

  6. Quantum Money (Quantum Summer Symposium 2020) 15:56. Peter Shor. We'll watch the start. It's fun to see what Shor is thinking about now.

Quantum Homework 7, Mon 2020-11-09

Due 2020-11-16 4:45pm in gradescope.

Teams of up to 3 are ok.

This project is to introduce yourself to quantum computing on Amazon Braket . It's sufficient to use the simulator. Wander around the web site. Set up an account. Create a simple program. Simulate it. Write a report on your observations.

This will probably cost you a few dollars, but not too much. If you feel that I'm being unfair to ask this, contact me. I'll give you a replacement homework.

Total: 20 points.

Quantum Class 19, Thurs 2020-11-05

1 What industry reps wish universities taught students

I'm virtually attending ACM SIGSPATIAL 2020 this week, and asked the Google speaker at the sponsor presentation session. He said that students should know how to design SW for longterm maintainability.

Know the balance balance between perfection and speed and effectiveness.

He also mentioned as a blue sky skill that students know something about quantum computing.

The Oracle rep said, API design, ability to develop modular and maintainable SW that catches and logs errors with sufficient diagnostics.

Everyone mentioned being able to apply ML to different domains. But then, one definition of ML is, "hard and unsolved important problem".

2 Mediasite videos

I just noticed that they were no longer permitted readable; dunno when that had happened. Fixed it. However no one ever complained. :-(

3 Jian Shi guest lecture

Today we are lucky to have Prof Jian Shi, Materials Science and Engineering, to talk about some physics aspects of quantum computing.

4 Google

  1. Google quantum General web site.

  2. Day 1 opening keynote by Hartmut Neven (Quantum Summer Symposium 2020) 29:58.

    We'll watch some or all, depending on how interesting it it.

  3. QuantumCasts link to some videos, including the following.

  4. Quantum supremacy explained (QuantumCasts) 4:26.

  5. Introduction to Quantum Chess (Quantum Summer Symposium 2020) 13:53.

  6. Quantum Money (Quantum Summer Symposium 2020) 15:56. Peter Shor. We'll watch the start. It's fun to see what Shor is thinking about now.

Quantum Class 18, Mon 2020-11-02

1 The pace of this course

I'm trying to keep things relaxed. I introduce you to fun stuff that you can pursue on your own.

  1. Is this pace reasonable?

  2. Do you want deeper math?

  3. Do you want required readings/viewings before class?

  4. (Everyone's camera is off but for mine.) Do you want me to require you to enable your cameras, and then I call on you with questions?

2 General

  1. The WIRED Guide to Quantum Computing Nice non-too-technical summary of the history. The theory preceded the realization. This happens sometimes, e.g., with atomic energy.

  2. Quantum Computing 2020 Update 11:58.

  3. Open-Source Quantum Software Projects

5 Microsoft quantum computing

  1. They offer a cloud service on 3 platforms: Honeywell, IonQ, QCI.

    Microsoft Is Taking Quantum Computers to the Cloud

  2. Microsoft Quantum

    A lot of stuff, with a low S/N.

  3. Microsoft quantum blog

  4. Azure Quantum Developer Workshop. 5:05:25.

    This is a little diffuse; watch on your own if you wish.

  5. For faster quantum computing, Microsoft builds a better qubit 11/7/2019.

  6. Microsoft Quantum Documentation gateway to a lot of stuff.

Quantum Homework 6, Mon 2020-11-02

Due 2020-11-09 4:45pm in gradescope.

Teams of up to 3 are ok.

  1. Pick a quantum software project not discussed in class, and write a page on it. Summarize it, perhaps give some example code. How widely used is it? Is the project live?

    A possible source is https://quantumcomputingreport.com/tools/ .

  2. Write a page with concise technical summary of Microsoft's role in quantum computing. I.e., summarize the mass of stuff I linked to.

Total: 20 points.

Quantum Class 17, Thurs 2020-17-29

1 Homework 5 extended

I'll add some help and give you more time.

2 Guest lectures

Some other profs at RPI who work with quantum computing have generously agreed to talk to the class. So, far the schedule is:

  1. Jian Shi. Nov 5.

  2. Sufei Shi. Nov 30.

  3. Edwin Fohtung. TBD.

3 Phase

  1. You cannot measure the phase of qbit.

  2. You can measure the relative phase of 2 qbits.

  3. Many algorithms encode the answer as a phase shift of a qbit.

  4. Phase kickback means that a gate that runs one way, e.g., the control bit affects an output bit, can be made to run the other way, e.g., the control bit is changed, by making the other bit a Hadamad basis.

    We'll see an example on the IBM Q.

  5. Phase Kickback V Abhijith Rao

  6. Qiskit Phase Kickback

5 Applications on the IBM Q

  1. Quantum Algorithms for Applications from qiskit

    This is rather deep; we may skim it.

  2. HHL Algorithm

    This is in Huawei HiQ, an open-source software framework for quantum computing.

  3. https://en.wikipedia.org/wiki/Quantum_algorithm_for_linear_systems_of_equations

Quantum Class 16, Mon 2020-10-26

2 D-Wave

  1. Quantum Programming 101: Solving a Problem From End to End | D-Wave Webinar 54:25.

    "Want to learn how to program a quantum computer? In this webinar, we explain how to do so by running through a complete, simple example. We explain how to formulate the problem, how to write it, and how to tune it for best results. "

    "This webinar is intended for those with little or no experience programming on a D-Wave quantum computer. After watching, get free time on Leap, the quantum cloud service at https://cloud.dwavesys.com/leap/signup/ "

    We'll watch part in class; finish it on your own.

  2. Slides from Programming Quantum Computers: A Primer with IBM Q and D-Wave Exercises by Frank Mueller, Patrick Dreher, Greg Byrd held at PPoPP (Feb 2019) ASPLOS'19 (Apr 2019),

    Part 3: D-Wave -- Adiabatic Quantum Programming

    We'll click through to some of the things it links to, like the

  3. D-Wave factoring tutorial and other demos

    including Jupyter notebooks (you have to login for them).

3 To watch on your own, if interested

  1. Sir Roger Penrose & Dr. Stuart Hameroff: CONSCIOUSNESS AND THE PHYSICS OF THE BRAIN 1:52:47. Among other things, Penrose invented Penrose tilings and shared this years Physics Nobel.

  2. Microsoft, e.g. Quantum Computing for Computer Scientists 1:28:22.

    This is the same viewpoint as the textbook, but the speaker is different.

    Watch this if you're still confused.

    This talk discards hand-wavy pop-science metaphors and answers a simple question: from a computer science perspective, how can a quantum computer outperform a classical computer? Attendees will learn the following:

    • Representing computation with basic linear algebra (matrices and vectors)

    • The computational workings of qbits, superposition, and quantum logic gates

    • Solving the Deutsch oracle problem: the simplest problem where a quantum computer outperforms classical methods

    • Bonus topics: quantum entanglement and teleportation

    The talk concludes with a live demonstration of quantum entanglement on a real-world quantum computer, and a demo of the Deutsch oracle problem implemented in Q# with the Microsoft Quantum Development Kit. This talk assumes no prerequisite knowledge, although comfort with basic linear algebra (matrices, vectors, matrix multiplication) will ease understanding.

    See more at https://www.microsoft.com/en-us/research/video/quantum-computing-computer-scientists/

4 Next time: Applications on the IBM Q

  1. Quantum Algorithms for Applications from qiskit

    This is rather deep; we may skim it.

Quantum Class 15, Thurs 2020-17-22

1 Quantum hardware

  1. The transmon qubit | QuTech Academy 6:03.

    The Hamiltonian of a system is an equation for its total energy (kinetic and potential) in terms of parameters like position and momentum.

  2. Alexandre Blais - Quantum Computing with Superconducting Qubits (Part 1) - CSSQI 2012 45:11.

    We'll watch part. You're encouraged to finish it on your own.

  3. Control of transmon qubits using a cryogenic CMOS integrated circuit (QuantumCasts) 35:47.

    Control of transmon qubits using a cryogenic CMOS integrated circuit talk is presented by Research Scientist Joe Bardin for the APS March Meeting 2020.

    Superconducting quantum processors are controlled and measured in the analog domain and the design of the associated classical-to-quantum interface is critical in optimizing the overall performance of the quantum computer. Control of the processor is achieved using a combination of carefully shaped microwave pulses and high-precision time varying flux biases. Measurement of quantum states is typically achieved using dispersive readout, which requires a low-power pulsed microwave drive and a near quantum-limited readout chain. For control of a single qubit, a typical system employs two high-speed high-resolution (e.g., 1 Gsps/14 bit) digital-to-analog converters (DACs) and a single-sideband modulator to generate microwave control pulses. A third DAC with similar specifications is used for flux-bias control. A typical readout channel may service on the order of five qubits and contains yet another pair of DACs, with a single-sideband modulator employed to generate a stimulus signal. For measurement, the readout chain also employs a series of cryogenic amplifiers followed by further amplification, IQ demodulation, and high-speed digitization at room temperature. For today’s prototype systems with on the order of 50-100 qubits, keeping most of the electronics at room temperature makes sense. However, achieving fault tolerance—a long term goal of the community—will require implementing systems with on the order of 10^6 qubits and today’s brute force control and readout approach will not scale to these levels. Instead, a more integrated approach will be required. In this talk, we will present a review of recent work towards implementing a scalable cryogenic quantum control and readout system using silicon integrated circuit technology. After motivating the work, we will describe the design and characterization of a prototype cryogenic XY controller for transmon qubits. Detailed measurement results will be presented. The talk will conclude with a discussion of future work.

    You may watch this on your own.

  4. Per Delsing: Superconducting qubits as artificial atoms 28:59.

    I might start showing this around 6:00 and show to around 16:00. He's describing a different computer from IBM's.

  5. The Taming of the Superconducting Qubit: A Tale of Loss 35:47.

    Presenter: Conal Murray, Research Staff Member, IBM Research

    The potential of quantum computing to enable new ways of solving problems considered intractable on classical computing platforms relies on our understanding of how qubits operate. Qubit scaling follows different metrics than those associated with classical computing, driven by the requirement that the fragile states they possess can be retained for sufficiently long times. After a brief introduction into superconducting transmon qubits, I will discuss how dielectric loss impacts their relaxation times and how we can effectively model such behavior using analytical and computational approaches. The resulting analysis provides guidance into the design aspects associated with such qubits. A secondary issue that follows from manufacturing greater numbers of qubits involves unwanted communication among them. In particular, resonance modes generated in the substrate on which they reside can limit their operating frequencies. It is known that incorporating grounded, through-silicon vias can increase the corresponding cutoff frequency within the substrate. I will show how we can predict the resulting spectrum by considering the array of vias as an effective photonic crystal to arrive at a fundamental frequency dependent on the particulars of the via geometry.

    http://meetings.aps.org/Meeting/MAR20/Session/P28.2

    We may watch the first part. This talk is more technical.

2 QuTech Academy

We've seen some of the excellent videos from this Delft research group.

Quantum Homework 5, Thu 2020-10-22

Due 2020-10-29 4:45pm in gradescope.

Teams of up to 3 are ok.

This homework is to program the IBM Q yourself.

It is from Programming Quantum Computers: A Primer with IBM Q and D-Wave Exercises by Frank Mueller, Patrick Dreher, Greg Byrd held at PPoPP (Feb 2019) ASPLOS'19 (Apr 2019).

Read and do parts 1 and 2. Run deutsch-josza.ipynb.

Upload a printout of the result. Include enough to make a convincing case that you got it to run.

Total: 20 points.

Quantum Class 14, Mon 2020-17-19

1 Physics

  1. Feynman was the first to propose the theoretical idea of a quantum computer.

    Richard Feynman - Quantum Mechanics 4:01.

    Extracted from HD Feynman: FUN TO IMAGINE complete 1080p 1:06:49. Recorded in 1983.

  2. "Spooky" physics | Leo Kouwenhoven | TEDxDelft (18:00)

  3. David Deutsch - Why is the Quantum so Strange? (8:43)

Quantum Homework 4, Thu 2020-10-15

Due 2020-10-23 4:45pm in gradescope.

Teams of up to 3 are ok.

Watch the 4 videos on Shor's algorithm that I first posted in class 7 and reposted today in class 13.

Write 400-500 words summarizing it. Be technical. Include some figures and equations.

Make your writeup look professional, as if you were submitting it to a conference.

Total: 20 points.

Quantum Class 12, Thurs 2020-10-08

1 Student talks part 2

  1. R Dia and N Pag and C Woo. EPR paradox.

  2. C Bar and L Rob and M Vis. E.5.1: Maxwell’s Demon, Landauer’s Principle, and the Physics of Information.

  3. Y Zha.

2 Quantum Phase

  1. https://quantum-computing.ibm.com/docs/iqx/guide/introducing-qubit-phase

  2. Can represent qbit with probability of being in 1 and a phase.

  3. Phase is not directly measurable.

  4. Gates can change phase, i.e., rotate the qbit.

  5. Gates: T, S, Z, U1, etc.

Quantum Class 13, Thurs 2020-17-08

1 Student talks part 3

  1. A Mar. Quantum erasers.

  2. J DeG. Fourier Transforms.

  3. I Phi. E.7.3 - Functional Quantum Programing: QML.

  4. J Cun. Finite Automata E.8.2.

6 Upcoming topics

  1. Quantum applications, e.g., from qiskit docs.

  2. Other quantum computers, e.g., D-Wave.

Quantum Class 10, Thurs 2020-10-01

1 Student talks next week

are listed in piazza. (I put temporary things there.)

2 D-Wave

https://en.wikipedia.org/wiki/D-Wave_Systems

They make a different type of quantum computer, called a quantum annealer. It is not comparable to quantum gates and circuits like IBM has. D-Wave minimizes a function by testing many solutions in parallel. They have been in the news lately, e.g.,

https://arstechnica.com/science/2020/09/d-wave-releases-its-next-generation-quantum-annealing-chip/

3 Nice intros to qbits

One way that I learn a new topic is to read several different intros.

  1. https://towardsdatascience.com/introduction-to-quantum-programming-a19aa0b923a9?gi=69d861e26d80

  2. https://medium.com/@jonathan_hui/qc-programming-with-quantum-gates-8996b667d256

  3. https://medium.com/@jonathan_hui/qc-programming-with-quantum-gates-2-qubit-operator-871528d136db

  4. https://www.cl.cam.ac.uk/teaching/0910/QuantComp/notes.pdf

    They have a nice description of measurement starting at slide 10.

    Each measurement operator has a basis vector set.

    The operator represents the qbit as a linear combo of the basis vectors.

    Then it projects the qbit onto one of the basis vectors, with probability being the length of that component.

    It is possible for two different qbits to measure the same in some basis, but measure different in a different basis.

4 IBM Quantum experience

  1. When you design a circuit here, you don't need to simulate it elsewhere. It shows you the probabilities.

  2. Dual view: you can see and edit both the circuit and the QASM code.

  3. There are some sample programs in https://github.com/Qiskit/openqasm.git

    We'll see how to clone that repository.

  4. We'll use and mod their Deutsch algorithm.

  5. We'll try the example circuits in https://quantum-computing.ibm.com/docs/iqx/example-circuits .

  6. We'll also see a reversible circuit for (7x mod 15).

    That sort of circuit is used in Shor's integer factorization algorithm.

5 Some future classes

  1. Shor's algorithm

  2. How IBM Q works (the hardware).

Quantum Class 9, Mon 2020-09-28

1 Apply for a Summer 2021 IBM Quantum Internship

Here. Deadline: Monday, November 2, 2020.

3 Physical basis for superposition

The quantum states of some system are solutions of a linear PDE. There is a basis set of solutions. Linear combos are also solutions. That's superposition.

4 Today

4.2 Try qiskit yourself

I'd like you to try the qiskit tutorial yourself, now, in class.

  1. Do you have python?

  2. The following is a summary from https://qiskit.org/documentation/install.html

    I'm trying to avoid using anaconda, to keep things a little simpler.

#. Create a free IBM Quantum Experience account.

  1. pip install 'qiskit[visualization]'

#, run python.

  1. in python:

    import qiskit

  2. Follow the tutorial.

  3. Ask questions.

Quantum Class 8, Thurs 2020-09-24

1 Today

We're not finished with Quantum Computing for Computer Scientists and algorithms. However today we'll start seeing IBM's role in quantum computing.

3 IBM quantum computing

  1. They have several quantum computers.

  2. The older ones are freely available on the web.

  3. Those have 5 and 15 qbits; see https://quantum-computing.ibm.com/

  4. Note that you can put gates between only adjacent qbits.

  5. You submit a batch job and get emailed when it runs.

  6. IBM github site: https://github.com/Qiskit with

    1. a free simulator.

      It doesn't match all the physical complexity of the real computer, but it's a good start.

    2. and tutorials and presentations.

  7. and a SW development framework. https://qiskit.org/

  8. You can create a quantum computation program either by

    1. designing a circuit, or

    2. using a programming language.

4 Sites

  1. https://qiskit.org/

    1. Install it on your machine.

    2. Create and run the demo program.

    3. Try the Getting Started tutorial.

      Since I'm still learning, I have to say circ.draw() not circ.draw('mpl')

  2. https://www.ibm.com/quantum-computing/

    1. Browse around the website.

    2. Look at the topologies of some machines.

    3. Create an account for yourself.

    4. Play with the graphical composer.

    5. Submit a job.

    6. Look at the output.

Quantum Class 7, Mon 2020-09-21

1 Homework 3

Homework 3 is student in-class presentations in 2 weeks.

2 Homework and project groups

Feel free to use piazza to solicit partners. Teaming is optional here, in contrast to some online classes that assign teams.

Colleges encourage or require teamwork because teams get more done. Working with other people is a valuable skill. Someday I hope to learn it :-)

4 Other descriptions of quantum algorithms, and Qiskit intro

Quantum algorithms are different and difficult, so reading multiple presentations may help. Here are some; some are on IBM's Qiskit site.

4.1 Basics

  1. https://www.quantiki.org/wiki/basic-concepts-quantum-computation - Read at least the start.

    Quantiki's biggest problem is that many links are dead.

4.2 Deutsch-Jozsa

This algorithm is deterministic.

  1. https://www.quantiki.org/wiki/deutsch-jozsa-algorithm

    Quick summary; doesn't say why it works.

  2. https://qiskit.org/textbook/ch-algorithms/deutsch-jozsa.html

    This is an intro to Qiskit. The terminology is confusing. E.g., Register 1 has q0 q1 q2. Register 2 has q3. The run buttons don't seem to work.

  3. https://en.wikipedia.org/wiki/Deutsch%E2%80%93Jozsa_algorithm

    This is a nice detailed description.

Quantum Homework 3, Mon 2020-09-21

  1. This will be student presentations of some idea in quantum computing.

  2. They will be in two weeks, on Oct 5 and 8.

  3. You may do them in teams of up to 3.

  4. A 1-person presentation will be 6-7 minutes. Two or more people will be 10-12 minutes.

  5. So that the class ends on time, your time will start when it's your turn and will end the appropriate number of minutes later. You may also submit a video.

  6. Pick a topic from Quantum Computing for Computer Scientists, in Appendix E, starting with E.3.

  7. I'll set up forms for people to pick a date and a topic, so that no more than 10 people are on Oct 8, and people pick different topics.

Quantum Class 6, Thurs 2020-09-17

2 Useful books

A student recommended these two books to the class.

  1. Quantum Computing: An Applied Approach by Jack Hidary

  2. Quantum Computation and Quantum Information by Nielsen and Chuang

The first book is more relevant to the class because it has more hands on examples. The second book is good for more theoretical information on the topic, but is still really interesting.

3 More on No Cloning

I made some supplementary material on cloning (copying), which works in the classical world but not in the quantum world.

Classically, you can easily clone a bit. Consider a 2-bit system, $x, y$. Represent the state with a 4-vector

$s=\begin{vmatrix} a_0\\a_1\\a_2\\a_3\end{vmatrix}$

where exactly one $a_i=1$ and the other three are 0. E.g., if $a_3=1$ then $x=y=1$.

Here's a 2-input, 2-output circuit that clones the first bit.

$x'=x\\y'=x$

Its truth table is

x y | x'y'
0 0 | 0 0
0 1 | 0 0
1 0 | 1 1
1 1 | 1 1

The matrix M is:

1 1 0 0
0 0 0 0
0 0 0 0
0 0 1 1

That is, the final state is $s' = \sum_j M_{ij} b_j$

However, M is singular. So this is not a legal quantum circuit. Let's try again.

The better way is the 3-input Toffoli gate in Figure 5.66 on page 156. The function is

$x'=x \\ y'=y \\ z'= z \oplus xy$

The truth table is

x y z | x'y'z'
0 0 0 | 0 0 0
0 0 1 | 0 0 1
0 1 0 | 0 1 0
0 1 1 | 0 1 1
1 0 0 | 1 0 0
1 0 1 | 1 0 1
1 1 0 | 1 1 1
1 1 1 | 1 1 0

The matrix is Eqn 5.62 on page 155.:

1 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0
0 0 1 0 0 0 0 0
0 0 0 1 0 0 0 0
0 0 0 0 1 0 0 0
0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 1
0 0 0 0 0 0 1 0

Let x=1, z=0. Then:

x'= 1
y'= y
z'= y

and we've cloned y in the classical case.

This matrix is nonsingular and so is legal in a quantum circuit.

Try $y= \frac{1}{\sqrt{2}} | 0> + \frac{1}{\sqrt{2}} | 1>$. Using x=1, z=0, the input will be

$\frac{ | 1, 0, 0> + | 1, 1, 0>}{\sqrt{2}}$

and the state is

$(0, 0, 0, 0, \frac{1}{\sqrt{2}} , 0, \frac{1}{\sqrt{2}} , 0)^T$

Multiplying that by the matrix gives

$\frac{ | 1, 0, 0> + | 1, 1, 1>}{\sqrt{2}}$

Instead of cloning y into z, this entangled y and z.

This isn't new; we already know how to engangle two qbits.

Engangling isn't the same as cloning. The point of cloning is that we could operate on the two bits separately. If they're engangled, operating on one affects the other.

4 Chapter 6, Algorithms of Quantum Computing for Computer Scientists

Today's big new stuff.

As usual, I'm typing the important points into this blog, together with my observations and opinions.

The algorithms are all searching for an answer. (An alternative is algorithms that compute something, like inverting a matrix.)

For these examples, the quantum algorithm is quite different from the classical algorithm, and is asymptotically faster.

Current research is deciding what algorithms can be made faster.

p 172: Any function can be made invertible by adding a control bit.

4.1 Deutsch

  1. We have a black box F(x) -> x'.

  2. We're told that F is either balanced or constant.

  3. How to determine which?

  4. We can input any x and see the result.

  5. Classically: eval F(0) and F(1).

  6. That took two evals and some comparisons.

  7. All that matters is the number of evals. We assume that they're slower than everything else.

  8. Quantumly (quantumicly?) we can determine which type F is with only one eval plus some extra matrices.

4.2 Deutsch - Jozsa

Now $F: \{0,1\}^n \to \{0,1\}$.

We're told that it's either constant or balanced. It's not neither.

Which is it?

Classically, we need n/2+1 evals of F.

Quantumly, we need only 1.

4.3 Simon's periodicity

Blackbox $F: \{0,1\}^n \to \{0,1\}^n$

For some unknown $c$, $F(x\oplus c) = F(x)$.

Determine $c$.

Quantum Class 5, Mon 2020-09-14

1 Today

We're doing chapters 4 and 5 of Quantum Computing for Computer Scientists.

I'm typing the important points into this blog.

2 Chap 4, pp 103ff

2.1 4.1 Quantum states, p 103

This restates more solidly what they stated more informally earlier.

2.1.1 Particle on line: 1st motivating example

Consider a particle on a line, with possible positions $x_0, x_1, ... x_{n-1}$.

We don't do the continuous limit here.

$|x_i>$ means the particle is at position $x_i$.

We describe the state of the system by using a complex vector $[c_0, c_1, ... c_{n-1}]^T$.

$|x_0> \longmapsto [1, 0, ...]^T$. $\longmapsto$ means maps to.

$|x_1> \longmapsto [0, 1, 0, ...]^T$.

$|x_{n-1}> \longmapsto [0, 0, ..., 1]^T$.

Posit All vectors in $C^n$ are legal states for the particle.

$|\psi>$ is a general state

$|\psi> = c_0 | x_0> + c_1 | x_1 + ...$

$|\psi> \longmapsto [c_0, c_1, ...]^T$.

This is a linear combo of the $|x_i>$.

That's superposition.

Observing it causes transition to one state, with prob eqn 4.5.

$p(x_i) = \frac{ | c_i | ^2}{\sum_j | c_j | ^2 } $

$| \psi> \leadsto | x_i >$ .

$\leadsto$ means the first quantum state transitions to the second.

2.1.2 Spin: 2nd motivating example

Spin is a property of most quantum particles.

You can measure its spin wrt the axis of your choice (subject to your equipment).

Wrt any given axis, the spin is up $|\uparrow>$ or down $\downarrow>$.

Particle is in a superposition of both spins.

$|\psi = c_0 | \uparrow> + c_1 | \downarrow>$.

Probability of observing in $|\uparrow>$

2.1.3 Measurement operator and Transition amplitude

Measurement operator will cause state to transition to one of a set of specific states (depending on the operator).

$|\psi> \leadsto | \psi' >$.

Application of inner product.

Probability of transitioning from $\psi$ to $\psi'$ when measured = $<\psi' | \psi>$.

2.2 4.2 Observables, p 115

Each observable thing, e.g, position, has a Hermitian operator.

The possible observable values are its eigenvalues.

In the particle example, P = diag[$x_0, x_1, ...$].

If we do two observations, the second is affected by what we see in the first.

Skip pages 118-125.

2.3 4.3 Measuring, p 126

Determine the value of an observable. If the observable is position, then a possible value might be 3.

Measuring causes the system to transition randomly to one eigenvector of the observable.

The probability is the transition amplitude.

(Not in book) One way to look at measuring is that the system is interacting with the outside world. Both are being affected, and the combo is reversible.

2.4 4.4 Dynamics, p 129

Evolution of a system is a unitary operator.

Reversible.

Schrodingers equation.

2.5 4.5 Assembling quantum systems, p 132

Tensoring the state spaces of the parts.

Entanglement again.

Example: create two paired spin particles from something with no spin. If you observe one particle to be $|\uparrow>$, then when you observe the other, it must be $|\downarrow>$. This is because spin is conserved.

Example 4.5.1, p 133

Exercise 4.5.3, p 135.

3 Chap 5, Architecture, pp 138ff

We've seen much of this earlier.

This puts classical gates and bits into quantum notation. This may help you understand quantum gates better.

3.1 5.1 Bits and qubits

Spelling: some say qbit others qubit.

3.2 5.2 Classical gates. p 144

Sample notation: AND $\!|01\!\!>\,\,=\,\,|0\!\!>$

There is a gate that will clone its input, i.e., make it fan out to two outputs.

3.3 5.3 Reversible gates, p 151

Erasing info dissipates energy.

3.4 5.4 Quantum gates, p 158

Block sphere. I don't personally find it that interesting. You may differ.

Can add one more input to make any gate into a controlled gate. E.g. ${}^c NOT$.

The classical cloning gate doesn't clone quantum states.

No-cloning.

Transporting or swapping is fine. (Star Trek got it right.)

Quantum Homework 2, Mon 2020-09-14

Due 2020-09-21 4:45pm in gradescope.

Quantum Computing for Computer Scientists will be very useful.

Ok to work in groups of 3 and submit one solution.

  1. (5 points) Exercise 3.2.6, p 85.

  2. (2 points) Exercise 3.3.1, p 90.

  3. (2 points) Exercise 3.4.3, p 101.

  4. (2 points) Exercise 4.1.1, p 108.

  5. (2 points) Exercise 4.1.3, p 109.

  6. (5 points) Exercise 5.2.8, p 151.

Total: 18.

Quantum Class 4, Thurs 2020-09-10

1 Lecture video quality

Did anyone have a problem with the resolution of the lecture 3 video being scaled down to 960x540 instead of the original 1920x1080? That cut the file size from 298MB to 145MB. It's annoying that Mediasite doesn't support H.265, so the codec has to be H.264. In future, I might increase the compression until people start objecting. The main effect of that would be motion artifacts; still images should be the same.

FYI, so far, a CLI is easier than an interactive tool.:

ffmpeg -i c03.mp4 -ss 1:00 -b:a 20k -vf "scale=iw/2:ih/2" c03s.mp4

This is being computed on my P73 laptop with a 6-core Xeon E-2276M CPU @ 2.80GHz (up to 4.70 GHz with Turbo Boost), 128GB of ECC memory, and Quadro RTX 5000 with 16GB. (The only problem with the laptop is it weighs 8 lb.)

2 Quantum Computing for Computer Scientists, ctd.

(I wanted to mix up the math with less mathy stuff).

From end of section 2.3, p.52 to 2.6.

P 52. Transition matrix to convert a vector representation from the canonical basis this another basis is the Hadamark matrix.

Section 2.4. Add an inner product operator to the complex vector space. Note the conjugates in the rules; you don't see them with a real vector space.

Norm, aka length.

We won't need limits etc.

Section 2.5 Eigenvalues and eigenvectors

Eigenvalues don't depend on the representation. Converting to a new basis set doesn't change them.

Geometrically, in 2D, in you transform a circle centered at origin, eigenvalues are lengths of the axes. Eigenvectors are the axes.

Section 2.6 Hermitian and unitary matrices

P 39. Adjoint: conjugate transpose of matrix.

If you use its eigenvectors as a basis, then the matrix diagonalizes to a list of its eigenvalues.

P 62. Hermitian matrix: it is its adjoint.

Unitary: its inverse is its adjoint.

Geometrically, they are rotations since they preserve distances.

Notation confusion: the books uses capital letters both for matrices and vectors.

P 71, tensor product of matrices.

p 80, doubly stochastic matrix.

Multiplying it by a vector of probabilities gives a vector of probabilities (i.e., they sum to 1 and $0\le a_i \le 1$ ).

P 88, Chapter 3, section 3.3 Quantum systems,

Real probabilities add.

When probabilities are norms of complex numbers, they might cancel.

p 91, Ex 3.2.2

p 93 double slit experiment

p 97 Section 3.4, Assembling systems

p 103 Chap Basic quantum theory

Feel free to read ahead.

3 Two qbit operators, ctd

  1. https://en.m.wikipedia.org/wiki/Bloch_sphere:

    1. The state of a qbit can be represented as a point on or in a sphere of radius 1.

    2. E.g., |1> is the north pole, |0> the south pole.

    3. Many operations are rotations.

  2. Common operations (aka gates):

    https://en.wikipedia.org/wiki/Quantum_logic_gate

    1. Swap

    2. controlled not CNOT cX

      When input is general, it's more sophisticated that it looks.

    3. Hadamard.

      1-qbit creates a superposition.

      https://cs.stackexchange.com/questions/63859/intuition-behind-the-hadamard-gate

      2-qbit creates a uniform superposition

      https://en.wikipedia.org/wiki/Quantum_logic_gate

    4. Toffoli, aka CCNOT.

      Universal for classical boolean functions.

      (a,b,c) -> (a,b, c xor (a and b))

      https://en.wikipedia.org/wiki/Toffoli_gate

    5. Fredkin, aka CSWAP.

      https://en.wikipedia.org/wiki/Fredkin_gate

      3 inputs. Swaps last 2 if first is true.

      sample app: 5 gates make a 3-bit full adder.

  3. Bell state

    1. Maximally entangled.

    2. Hadamard then CNOT.

  4. Algorithms:

    1. Some, but not all, are faster.

    2. Bounded-error quantum polynomial time (BQP)

      1. "is the class of decision problems solvable by a quantum computer in polynomial time, with an error probability of at most 1/3 for all instances" - https://en.wikipedia.org/wiki/BQP

      2. Includes integer factorization and discrete log.

      3. Relation to NP is unknown (big unsolved problem).

    3. Searching problems:

      1. Find the answer to a puzzle.

      2. Math examples: factor an integer, solve a polynonial equation.

      3. Testing validity of a putative solution is easy.

      4. Finding that putative solution, naively, requires testing all possibilities.

      5. Quantum computation can solve some searching problems faster.

      6. This is probabilistic or noisy; often the found solution is wrong.

      7. So you repeat the computation enough times that the error rate is acceptably low.

      8. Some classical algorithms are similar. There is an excellent probabilistic primality algorithm.

      9. The quantum algorithms are quite complex. (i.e., I'm still learning them.)

    4. Algorithms, another view

      1. Hadamard matrix rotates the pure state to an entangled superposition.

      2. Then we operate in parallel on each state in the superposition.

      3. Finally we separate out the desired answer.

    5. Grover's algorithm:

      1. https://en.wikipedia.org/wiki/Grover%27s_algorithm

      2. Given a black box with N inputs and 1 output.

      3. Exactly one input makes the output 1.

      4. Problem: which one?

      5. Classical solution: Try each input, T=N.

      6. Quantum: $T=\sqrt(N)$.

      7. Probabilistic.

      8. Apps: mean, median, reverse a crypto hash, find collisions, generate false blocks.

      9. Can extend to quantum partial search.

      10. Grover's algorithm is optimal.

      11. This suggests that NP is not in BQP .

    6. Shor's algorithm:

      1. Factorize an integer.

      2. in BQP.

      3. almost exponentially faster than best classical algorithm.

      4. Largest examples I can find:

        1. 56153 = 233 × 241.

        2. https://medium.com/@aditya.yadav/rsa-2048-cracked-using-shors-algorithm-on-a-quantum-computer-660cb2297a95

  5. https://quantumexperience.ng.bluemix.net/qx/tutorial ctd.

Quantum Class 3, Tues 2020-09-08

2 Today

It's time to review some math fundamentals, from Quantum Computing for Computer Scientists. This will help with entanglement.

  1. Read chapter 1 on your own; you should know it.

  2. Chapter 2:

    1. Complex vector space, page 34.

      1. n-dim vector $\begin{vmatrix} c_0 \\ \cdots \\ c_{n-1}\end{vmatrix}$

      2. Add 2 vectors.

      3. Multiply vector by scalar.

      4. etc.

    2. Set of $m\times n$ complex matrices, $\mathbb{C}^{m\times n}$, is also a complex vector space.

      1. Transpose, conjugate, adjoint.

      2. Matrix mult is $\star$ in book.

    3. $\mathbb{C}^{m\times n}$ is a complex algebra.

    4. Set of polynomials in one variable of degree $le n$ is a complex vector space.

    5. State of a quantum system is a complex vector.

    6. You can make new vector spaces from combos of old ones.

      1. Cartesian product or direct sum.

      2. Just an ordered pair.

      3. $(v_1, v_2)$.

    7. Set of basis vectors for the vector space.

      1. Every vector $v$ in the space is a linear combo of the basis vectors.

      2. Represent $v$ as the list of weights.

      3. There are many possible basis sets.

      4. Each different basis set causes a different representation for the vectors.

      5. Convert: change of basis.

      6. Cartography example: NAD27, WGS84.

        A bridge between Switzerland and Germany across the Rhine River at Laufenberg had its two ends at different elevations because of a conversion error between two different basis systems.

      https://www.science20.com/news_articles/what_happens_bridge_when_one_side_uses_mediterranean_sea_level_and_another_north_sea-121600

      1. Hadamard matrix is an example.

    8. Section 2.4 Inner product, etc, p 53 will be covered later.

    9. Section 2.7 Tensor product of vector spaces, p 66.

      1. $\mathbb{V} \otimes \mathbb{V'}$.

      2. Let $dim(\mathbb{V})=p$ and $dim(\mathbb{V'})=q$ . Then $dim(\mathbb{V} \otimes \mathbb{V'}) = pq$.

      3. This is how quantum systems combine.

      4. Example 2.7.2 p 70.

  3. Chapter 3 through 3.2, p 74-88.

3 Entanglement of 2-qbit system

State is a 4-vector of length 1.

It was originally created as the exterior product of two 2-vectors, the states of two separate 1-qbit systems.

Originally the separate 1-qbit systems didn't affect each other. Either could be transformed and measured.

Then 2-qbit system was rotated with a transformation matrix.

Now, perhaps it can be decomposed into the exterior product of two 2-vectors. Perhaps not.

  1. Case 1: The 4-vector representing the new state can be decomposed.

    Then it's still really two separate 1-qbit systems.

    They can still either be transformed and measured.

    Measuring one qbit does not affect the other qbit.

  2. Case 2: The 4-vector representing the new state cannot be decomposed.

    So the 2 qbits are now entangled.

    That means that measuring one qbit affects what you will see when you measure the other.

    It might just bias the probabilities of measuring the other qbit as 0 or 1.

    Or, it might totally control what you will see.

4 Paper asked about

Last time, there was a question about Asher Peres, Quantum Disentanglement and Computation, https://cds.cern.ch/record/330754/files/9707047.pdf

It's a matrix multiplication.

Quantum Homework 1, Tues 2020-09-08

Due 2020-09-14 4:45pm in gradescope.

Quantum Computing for Computer Scientists will be very useful.

Ok to work in groups of 3 and submit one solution.

  1. (2 points) Compute (1+2i)/(3+4i).

  2. (5 pts) Compute the eigenvalues of $\begin{vmatrix} 1&2\\3&4 \end{vmatrix}$.

  3. (2 pts) Considering complex numbers as points in the 2D plane, what is the geometric effect of multiplying a complex number by (.6+.8i) ?

  4. (5 pts) Do exercise 1.3.8. Let c = 1 − i. Convert it to polar coordinates, calculate its fifth power, and revert the answers to Cartesian coordinates.

  5. (5 pts) Exercise 1.3.9 Find all the cube roots of c = 1 + i.

  6. (5 pts) Find the inverse Mobius transformation to

    $$R_{a,b,c,d}(z) = \frac{az+b}{cz+d}$$

  7. (5 pts) Invert the Hadamard matrix $\frac{1}{\sqrt{2}} \begin{vmatrix} 1&1\\1&-1\end{vmatrix}$.

  8. (2 pts) Could a classical OR gate, with 2 inputs and 1 output, be a quantum gate? Why?

  9. (2 pts) Could the following extension of a classical OR gate, with 2 inputs and 2 outputs, be a quantum gate? Why?:

    A' = A or B
    B' = B
  10. (2 pts) What about this extension of a classical XOR gate, with 2 inputs and 2 outputs. Can it be a quantum gate? Why?:

    A' = A xor B
    B' = B

Total: 35

Quantum Class 2, Thu 2020-09-03

1 Handwritten notes, video transcripts, and other files

They are accessible from the Files tab on the top menu bar.

So far, they include scans of my handwritten notes during the lectures, and webex's attempt at a written transcript of the lecture videos. It's actually useful.

3 Asking questions in class

Please ask questions. I try to have the chat window open most of the time. If I ignore you, ok to unmute your mike to ask a question.

Constructive opinions and comments are also welcome.

5 Class 1 extras

5.1 Youtube videos to watch

These are the ones I tried unsuccessfully to show in class 1.

A beginner's guide to quantum computing | Shohini Ghose https://www.youtube.com/watch?v=QuR969uMICM 10:04

Quantum Computing in Under 11 Minutes daytonellwanger

https://www.youtube.com/watch?v=TAzZKAdX2Tw 10:56 more technical

5.3 Review

5.3.1 Classical computation

  1. Bit.

  2. Its 2 possible values are 0 or 1.

  3. Byte.

  4. Has 8 bits.

  5. It has 256 possible values.

  6. Bits are transformed with gates, like nand, nor, and, or, xor, not, ...

  7. They generally destroy info, and are not invertible.

  8. More complex circuits, like adders, are formed from a combo of these gates.

5.3.2 Quantum computation

  1. Qbit, $q$.

  2. Its state is a linear combo of two basis states, $|0>$ and $|1>$:

    $q = a|0> + b|1>$ ,

    where $a$ and $b$ are complex numbers, and $ | a | ^2 + | b | ^2 = 1$.

  3. IOW, its state is a superposition of those two basis states, with those weights.

  4. It is wrong to think that $q$ is really in one of the two states, but you don't know which one. This is the hidden variable theory. It has been proved experimentally to be false.

  5. $q$ is really in both states simultaneously.

    Alice laughed. "There's no use trying," she said: "one can't believe impossible things." "I daresay you haven't had much practice," said the Queen. "When I was your age, I always did it for half-an-hour a day. Why, sometimes I've believed as many as six impossible things before breakfast." - Through the Looking-Glass, and What Alice Found There (1871), by Lewis Carroll (Charles Lutwidge Dodgson).

  6. You cannot observe its state, unless it is $|0>$ and $|1>$, in which case you observe $0$ or $1$. This is the classical case.

  7. Otherwise you observe it with a measurement operator that transforms it to either $|0>$ and $|1>$, with probabilities

    $| a | ^2$ and $| b | ^2 = 1$, respectively.

  8. $a$ and $b$ are complex.

  9. That measurement changes $q$; it no longer has its old value.

  10. $q$, that is, $q$ 's value, can be considered to be a vector of length one: $$\begin{pmatrix} a | 0> \\ b | 1> \end{pmatrix} $$ or simply $$\begin{pmatrix}a\\b\end{pmatrix}$$.

  11. You operate on $q$ with a matrix multiplication: $q_2 = M q$.

  12. This changes $q$; the old value is no longer available.

  13. No cloning: You cannot copy a qbit, but can move it.

  14. The life cycle of a qbit:

    1. Create a qbit with a classical value, 0 or 1.

    2. Operate on it with matrices, which rotate it to have complex weights.

    3. Transform it back to 0 or 1 and read it.

  15. So far, not very powerful.

  16. Now, let $q$ be a system with two qbits, i.e., a 2-vector of qbits.

6 Next class

Class 3 is on Tues Sept 8 because of Labor Day

7 Today

7.1 More 1-qbit gates

square root of not

phase shift

7.2 Entanglement

Crazy counterintuitive idea that's the basis for quantum speedup.

Classical metaphor for entanglement:

  1. Start with a piece of paper.

  2. Tear it into two halves.

  3. Put each half into an envelope, seal them, and mix them up, so that you can't tell which half is in which envelope.

  4. Address and mail one envelope to a friend in Australia, and the other to a friend in Greenland.

  5. When the Australian opens his envelope, he knows what the Greenlander will find in his.

  6. However that doesn't let the Australian send any info to the Greenlander, or vv.

  7. This has been demonstrated with real qbits transported 1000 miles apart.

  8. Entanglement means that if you measure one qbit then what you observe restricts what would be observed when you measure the other qbit.

  9. However that does not let you communicate.

7.3 Two qbit operators

  1. Now, let $q$ be a system with two qbits, i.e., a 2-vector of qbits.

  2. $q$ is now a linear combo of 4 basis values, $ | 00>$, $ | 01>$, $ | 10>$, $ | 11>$.

  3. $q = a_0 | 00> + a_1 | 01> + a_2 | 10> + a_3 | 11> $

  4. where $a_i$ are complex and $ \sum | a_i | ^2 = 1$.

  5. $q$ exists in all 4 states simultaneously.

  6. If $q$ is a vector with n component qbits, then it exists in $2^n$ states simultaneously.

  7. This is part of the reason that quantum computation is powerful.

  8. A measurement operator applied to $q$ will rotate it to a basis {00, 01, 10, 11}, so that it will be observed in one of those four cases, with probabilities $ | a_i | ^2$.

  9. You operate on $q$ by multiplying it by a 4x4 matrix operator.

  10. The matrices are all invertible, and all leave $ | q | = 1$.

  11. You set the initial value of $q$ by setting its two qbits each to 0 or 1.

  12. How this is done depends on the particular hw.

  13. I.e., initially, $q_1 = \begin{pmatrix}a_1 | 0> \\b_1 | 1> \end{pmatrix}$ and $q_2 = \begin{pmatrix}a_2 | 0> \\b_2 | 1> \end{pmatrix}$, and so

    $$q = \begin{pmatrix} q_1 \\ q_2 \end{pmatrix} = \begin{pmatrix} a_1 a_2 | 00 > \\ a_1 b_2 | 01 > \\ a_2 b_1 | 10 > \\ b_1 b_2 | 11 > \end{pmatrix}$$.

  14. Here, the combined state is the tensor product of the individual qbits.

  15. For $n$ qbits, the tensor product is a vector with $2^n$ elements, one element for each possible value of each qbit.

  16. Each element of the tensor product has a complex weight.

  17. You transform a state by multiplying it by a matrix.

  18. The matrix is invertible.

  19. The transformation doesn't destroy information.

  20. When you measure a state, it collapses into one of the component states. (This may be inaccurate.)

  21. You don't need to bring in consciousness etc. The collapse happens because the measurement causes the state to interact with the outside world.

  22. The probability of collapsing into a particular state is the squared magnitude of its complex weight.

  23. For some sets of weights, particularly after a transformation, the combined state cannot be separated into a tensor product of individual qbits. In this case, the individual qbits are entangled.

  24. That is the next part of why quantum computation is powerful.

  25. Entanglement means that if you measure one qbit then what you observe restricts what would be observed when you measure the other qbit.

  26. However that does not let you communicate.

  27. From page 171 of

    Quantum Computing for Computer Scientists 1st Edition

    All quantum algorithms work with the following basic framework:

    1. The system will start with the qubits in a particular classical state.

    2. From there the system is put into a superposition of many states.

    3. This is followed by acting on this superposition with several unitary operations.

    4. And finally, a measurement of the qubits.

    1. Ways to look at measurement:

      1. Converts qbit to classical bit.

      2. Is an interaction with the external world.

      3. Information is not lost, but leaks into the external world.

      4. Is an operator represented by a matrix.

      5. that is Hermitian, i.e., it's equal to its complex transpose.

      6. For physical systems, some operators compute the system's momentum, position, or energy.

      7. The matrix's eigenvalues are real.

      8. The result of the operation is one of the eigenvalues.

  28. More from

    Quantum Computing for Computer Scientists 1st Edition

    1. Compare byte with qbyte.

    2. State of byte is 8 bits.

    3. State of qbyte is 256 complex weights.

    4. They all get modified by each operation (aka matrix multiply).

    5. That is the power of quantum computing.

  29. The current limitations are that IBM does only a few qbits and that the operation is noisy.

Quantum Class 1, Mon 2020-08-31

1 Syllabus

Read the syllabus, accessible from the top bar.

2 Piazza

This term we will be using Piazza for class discussion. It is widely used at RPI. The system is catered to getting you help fast and efficiently from classmates and myself. Rather than emailing questions, I encourage you to post your questions on Piazza. If you have any problems or feedback for the developers, email team@piazza.com.

I (WRF) have added everyone enrolled as of 8/30. Anyone else can add yourself at the class signup link at: https://piazza.com/rpi/fall2020/ecse4964 .

3 Gradescope

We'll use Gradescope for submitting homeworks and possibly projects. I've added everyone as of 8/30.

4 My research

I do parallel geometry algorithms on large problems for CAD and GIS. See my home page. If this is interesting, talk to me. Maybe you can do something that leads to a jointly-authored paper.