Algorithms and cookie recipes

When speaking about solving problems with a computer, whether it being in simulation, optimization or machine learning, we often hear the term algorithm. But an algorithm is actually not automatically tied to a computer. Also a cookie recipe can be thought of as an algorithm.

A cookie recipe can be considered an algorithm.

This cookie recipe has many characteristics that we also expect from algorithms that are supposed to run on a computer.

An algorithm is a finite list of clear instructions used to solve a problem.

Algorithms are not bound to a computer or a language. But in order to run an algorithm on a computer we need to use a language the computer understands – the programming language. There are multiple programming languages that can be used to implement an algorithm on quantum computers. But a good way to display quantum algorithms is to use circuit diagrams as we did in the foundations module. Thus, in this module, we will explore quantum algorithms using our well-known circuit diagrams.