What problem does it solve?
PennyLane solves the problem of building and training quantum machine learning models by providing an end-to-end workflow for constructing parameterized quantum circuits and optimizing them with automatic differentiation.
Core Features & Use Cases
- Automatic differentiation for quantum circuits: Train variational quantum algorithms (e.g., VQE, QAOA) using gradient-based optimizers and simulator backends.
- Device-independent execution: Run the same circuit on different backends (simulators and hardware plugins) with minimal code changes.
- Hybrid quantum-classical modeling: Combine quantum layers with classical ML frameworks like PyTorch, JAX, and TensorFlow for end-to-end training.
- Quantum simulation toolchain: Manage devices, gradients, circuit construction, measurements, noise models, and resource estimation for experimentation and debugging.
Use cases: variational algorithms for optimization, quantum neural network prototypes, and hardware-portable QML research workflows.
Quick Start
Use the pennylane skill to install the library and run a gradient-trained variational circuit on default.qubit with one Python file that defines a qnode, an optimizer, and a training loop.