Tutorials

These tutorials introduce the main workflows in Piquasso, from basic program construction to sampling, differentiable simulations, and application-oriented examples.

First steps

Getting started

Build and execute a first Piquasso program.

Getting Started
Modularity in Piquasso

Compose programs, reuse circuit fragments, and define custom gates.

Piquasso program organization

Sampling experiments

Boson Sampling

Simulate Boson Sampling circuits with particle-number input states.

Boson Sampling
Gaussian Boson Sampling

Simulate Gaussian Boson Sampling circuits and inspect the resulting samples.

Gaussian Boson Sampling

Differentiable workflows

Quantum Neural Network layers

Use Piquasso with TensorFlow in a trainable continuous-variable workflow.

Differentiating CVQNN layers with Piquasso and Tensorflow
Using JAX with Piquasso

Learn a simple state-learning example using JAX and Piquasso.

Using Piquasso with JAX

Applications and benchmarking

Dense k-subgraph problem

Use Gaussian Boson Sampling to study the dense k-subgraph problem.

Finding dense k-subgraphs using Gaussian Boson Sampling
Linear cross-entropy benchmarking

Run a simple linear cross-entropy benchmarking example.

Linear cross-entropy benchmarking using Piquasso