Elements of Quantum Computer Programming (Stanford CS269Q Lecture Materials)
Prof. Dan Boneh and Will Zeng, Stanford
1 course · 7 tutorials
Prof. Dan Boneh and Will Zeng, Stanford
Learn to simulate realistic quantum noise in PyQuil using Kraus operators, depolarizing channels, and T1/T2 decoherence models. Compare ideal and noisy Bell state results on the QVM.
Learn how to write and compile parametric quantum programs in pyQuil using DECLARE memory regions and runtime memory maps, compile for Rigetti's Ankaa topology with Quilc, and execute on the QVM and Rigetti QCS.
Learn Rigetti's PyQuil framework, write quantum programs in the QUIL instruction language and run them on Rigetti's superconducting quantum processors via Quantum Cloud Services.
Implement the Variational Quantum Eigensolver (VQE) in PyQuil to find the ground state energy of molecular hydrogen. Build the Hamiltonian, parameterized ansatz, and classical optimization loop.
Use PyQuil's Quilbase API to construct parameterized Quil programs, manage classical memory, and execute on Rigetti QCS. Covers the modern PyQuil 4.x API with QCSClient.
Deep dive into the Quil quantum assembly language underlying PyQuil. Learn DEFGATE, DECLARE, classical control flow, DEFCIRCUIT, and how PyQuil programs compile to Quil strings.
Write your first quantum program in PyQuil, build a Bell state using Quil instructions, run it on the QVM simulator, and understand the output.