What are quantum computers, and how can we train them in Python?
summary
Python code shows how to build parameterized quantum functions using PennyLane (and mentions Qiskit, Cirq), run them on a local simulator or cloud hardware, extract gradients with the parameter-shift rule, and plug them into optimizers and ML frameworks. A PyTorch autograd wrapper is implemented so hybrids backpropagate; an example optimization finishes in 2 iterations with ~32 quantum evaluations and lowers the cost from 0.81 to −0.84, so the approach actually works. PennyLane + PyTorch
AI-written summary · about
chapters (9)
- 0:00Start
- 1:28What Are Quantum Computers
- 1:39What Quantum Computers Are
- 6:36Build a Quantum Function in Python
- 8:59Create Our Quantum Function
- 15:08Parameter Shift Rule
- 19:24Backwards Method
- 22:51Back Propagation
- 24:59Resources
related talks
01h 27mQuantum Computing with Python
46mQuantum Machine Learning 101: An Introduction for Beginners with...
42mQuantum computing without leaving Python behind
27mQuantum Computing with Python: From Qubits to Circuits
21mHybrid Quantum Computing for AI
27mQuantum Machine Learning With TensorFlow Quantum
31mReinforcement Learning with Quantum Algorithms: Simulating Nematode Behaviour
48mGetting Started with Quantum Programming
