An On-Line course in using Maple to study Quantum Computing and Algorithmic Graph Theory

http://sites.math.rutgers.edu/~zeilberg/qc25.html

Last Update: March 13, 2025

C14pi.txt contains:

Special Pi Day Homework due Wed., March 12, 2025, 8:00pm

Please email ShaloshBEkhad at gmail dot com an email with

Subject: HomeWork#14pi

and an attachment

hw14piFirstNameLastName.txt

and indicate whether it is OK to post. If you do not say "OK to post", it will not be posted.

  1. Write a procedure

    JesusG(N)

    that uses N terms of Jesus Guillera's amazing formula in his homepage (given in "Ramanujan notation") that computes an approximation to 128/&pi2.

    How close is JesusG(10) to 128/&pi2?, How close is JesusG(100) to 128/&pi2?,

  2. [Pi Hacktaton]: Use any algorithm you can find (except "cheating ones" like copying the digits of Pi) to compute Pi. The fasted and/or most elegant entry will win a Pi T-shirt.

    [Hint: Many series for Pi are of hypergeometric type: Sum(p(n)*f(n),n=0..infinity) where p(n) is a polynoial and f(n)/f(n-1) is a rational function. It is most efficient to just have the current value of f(n) and keep adding p(n)*f(n)]

Added March 13, 2025: See all Students' Pi codes

Regular Homework due Sunday, March 16, 2025, 8:00pm

Please email ShaloshBEkhad at gmail dot com an email with

Subject: HomeWork#14

and an attachment

hw14FirstNameLastName.txt

  1. [Modified and simplified, March 11]

    Write a process

    RandomBell1(K)

    (1) After defining ra:=proc(K): rand(-K..K)():end: Keeping the same A0,A1,B0,B1, as in the wikipedia article

    A0:=C1QG()[4],A1:=C1QG()[2],B0:= -(C1QG()[2]+C1QG()[4])/sqrt(2),B1:=(C1QG()[2]-C1QG()[4])/sqrt(2)

    (2) Picks a random state (in the 2-qubit space generated by 00,01,10,11, sets V=[ra(K)+I*ra(K),ra(K)+ra(K)*I,ra(K)+I*ra(K),ra(K)+I*ra(K)]:

    (3) NORMALIZE it! , i.e. divide V by its NORM. rename the new state V.

    Computes Bell(A0,A1,B0,B1,V)

  2. Write a procedure

    RandomBell(K,N)

    that runs RandomBell1(K) N times and returns

    (1) The average value over all N trials.

    (2) The fraction of times it exceeds 2, thereby refuting Albert (and Boris and Nathan)

    What did you get for

    RandomBell(10,1000)?


Programs done on Thurs., March 13, 2025