Skip to content

Files

Latest commit

71c3cf1 · Mar 21, 2025

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 29, 2023
Mar 21, 2025
Jun 13, 2018
Nov 1, 2021
Feb 25, 2025
Jul 12, 2022
Apr 14, 2022
Aug 15, 2023
Dec 20, 2022
Aug 15, 2023
Oct 22, 2020
Mar 20, 2024
Sep 20, 2022
Jul 16, 2022
Apr 14, 2022
Aug 18, 2023
Nov 1, 2021
May 6, 2022
Apr 14, 2022
Mar 3, 2025
Mar 3, 2025
Apr 14, 2022
Apr 14, 2022
Apr 26, 2022
Nov 9, 2021
Dec 8, 2021
Jun 14, 2022
Aug 15, 2023
Feb 25, 2025
Apr 14, 2022
Mar 2, 2021
May 23, 2024
Apr 8, 2022
Jul 11, 2022
Nov 1, 2021
Jul 17, 2023
Sep 18, 2023
Mar 2, 2021

Cirq Examples

The files in this directory (cirq/examples/) are examples of various quantum programs, algorithms, and demonstrations of using Cirq. This directory is not included in the packaged Cirq releases.

Tip

Everyone is free to copy, use, modify, and publish this example code under the terms of the Apache 2.0 license.

Summary of examples

Here is a summary of the examples found in this directory:

Tips

To learn more about the examples in this directory, look inside the Python .py files for a docstring comment near the top of the file. (You can ignore the files whose names end in _test.py; those are unit tests for the example files.)

The Experiments page on the Cirq documentation site has more examples, including examples drawn from the ReCirq project.