PennyLane
  • Why PennyLane
  • Getting Started
  • Documentation
  • Ecosystem
Install
Install

Coding Challenges

Get hands-on experience with quantum computing in PennyLane–from quantum chemistry to quantum machine learning–using our exclusive coding challenges.

Choose a category

All Challenges
Getting Started
Algorithms
Error Correction
Hamiltonians
Optimization
Quantum Chemistry
Quantum Circuits
Quantum Information
Quantum Machine Learning

Newest Coding Challenges

Beginner

A Shor Thing

Program Shor's 9-qubit code.

Advanced

Changing Qubits

Route a quantum state through the virus-ridden channel.

Intermediate

Don't Hit the Ground

Calculate the half-life of an excited state.

Advanced

Reaching for the Ratio

Optimize the efficiency of your QAOA routine.

Beginner

Hydro Bonding

Calculate the ground energy of a Hydrogen molecule.

Advanced

An Itch to Switch

Switch basis state qubits with your friend.

Beginner

A Shor Thing

Program Shor's 9-qubit code.

Advanced

Changing Qubits

Route a quantum state through the virus-ridden channel.

Intermediate

Don't Hit the Ground

Calculate the half-life of an excited state.

Advanced

Reaching for the Ratio

Optimize the efficiency of your QAOA routine.

Beginner

Hydro Bonding

Calculate the ground energy of a Hydrogen molecule.

Advanced

An Itch to Switch

Switch basis state qubits with your friend.

Beginner

A Shor Thing

Program Shor's 9-qubit code.

Advanced

Changing Qubits

Route a quantum state through the virus-ridden channel.

Intermediate

Don't Hit the Ground

Calculate the half-life of an excited state.

See challenges by difficulty:

Beginner
Intermediate
Advanced

Getting Started

See all (7)
Beginner

Begin Here

Solve a simple challenge to become familiar with this platform.

Intermediate

Certificate Challenge: Introduction to PennyLane

Test your basics of PennyLane and earn a certificate.

Beginner

Returning Expectation Values

Build a PennyLane circuit that returns the expectation value.

Beginner

Returning Tensor Product Observables

Return the expectation value of a 2-qubit observable.

Beginner

Comparing Expectation Values

Investigate how gate orderings affect measurement outcomes.

Beginner

Returning Probabilities

Build a PennyLane circuit that returns measurement probabilities.

Beginner

States and Probabilities

Prepare a two-qubit state and measure output probabilities.

See all (7)

Algorithms

See all (7)
Advanced

Reaching for the Ratio

Optimize the efficiency of your QAOA routine.

Beginner

Introduction to LCUs

Apply a non-unitary operator to a quantum state.

Advanced

The Lazy Colleague

Identify a lazy co-worker using an oracle.

Advanced

The False Proof

Use a quantum circuit to debunk a flawed proof.

Advanced

Counting Mountains

Count peaks and valleys using quantum circuits.

Advanced

Noisy QAOA

Find the approximation ratio of a noisy QAOA circuit.

Advanced

The Oracle of the Exact Distance

Build an oracle that verifies state distances.

See all (7)

Error Correction

See all (2)
Beginner

A Shor Thing

Program Shor's 9-qubit code.

Advanced

Changing Qubits

Route a quantum state through the virus-ridden channel.

See all (2)

Hamiltonians

See all (3)
Advanced

A Noisy Heisenberg Model

Simulate the Heisenberg Hamiltonian with added noise.

Beginner

A Simple Trotterization

Implement the unitary evolution of a Hamiltonian.

Intermediate

Hamiltonians and Operator Arithmetic

Create a given Hamiltonian using operator arithmetic.

See all (3)

Optimization

See all (5)
Intermediate

Secrets in Spacetime

Develop a method to test a noisy encrypter.

Beginner

Keeping Expectations Low

Use an optimization routine to minimize an expectation value.

Beginner

The Hessian of a Circuit

Use the parameter-shift rule to calculate the Hessian.

Beginner

The Parameter-Shift Rule

Calculate the gradient of a variational circuit.

Intermediate

Revisiting Schrodinger's Cat

Design an experiment to make a zombie cat.

See all (5)

Quantum Chemistry

See all (2)
Beginner

Hydro Bonding

Calculate the ground energy of a Hydrogen molecule.

Intermediate

Ising Uprising

Use the VQE on the Transverse Ising Model.

See all (2)

Quantum Circuits

See all (4)
Beginner

Mid-Circuit Measurements

Construct a circuit with mid-circuit measurements.

Beginner

Undo that Computation

Implement a reversible computation.

Beginner

My First Quantum Simulation

Build a toy version of PennyLane using numpy.

Beginner

Universality of Single-Qubit Gates

Create an arbitrary single-qubit gate using rotations.

See all (4)

Quantum Information

See all (5)
Advanced

An Itch to Switch

Switch basis state qubits with your friend.

Intermediate

Don't Hit the Ground

Calculate the half-life of an excited state.

Intermediate

A Pauli-Worded Problem

Identify a state from noisy copies of it.

Intermediate

Quantum State Discrimination

Distinguish two qubit states using one measurement.

Intermediate

Recoherence

Find the recoherence time for a simple 5-spin system

See all (5)

Quantum Machine Learning

See all (1)
Intermediate

The Super Parameter

Explore the concept of expressivity in QML.

See all (1)
PennyLane

PennyLane is an open-source software framework for quantum machine learning, quantum chemistry, and quantum computing, with the ability to run on all hardware. Built with ❤️ by Xanadu.

Stay updated with our newsletter

For researchers

  • Research
  • Features
  • Demos
  • Compilation
  • Datasets
  • Performance
  • Learn
  • Videos
  • Documentation
  • Teach

For learners

  • Learn
  • Codebook
  • Teach
  • Videos
  • Challenges
  • Demos
  • Compilation
  • Glossary

For developers

  • Features
  • Documentation
  • API
  • GitHub
  • Datasets
  • Demos
  • Compilation
  • Performance
  • Devices
  • Catalyst

© Copyright 2025 | Xanadu | All rights reserved

TensorFlow, the TensorFlow logo and any related marks are trademarks of Google Inc.

Privacy Policy|Terms of Service|Cookie Policy|Code of Conduct