GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - antoine-bussy/qpp-examples: Quantum++ Examples

BranchesTags
Open more actions menu

Latest commit

 

History

294 Commits
294 Commits

Folders and files

NameName
Last commit message
Last commit date
cmake
cmake
 
 
qpp-examples
qpp-examples
 
 
qube
qube
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
CMakeLists.txt
CMakeLists.txt
 
 
CMakePresets.json
CMakePresets.json
 
 
CMakeUserPresets.example.json
CMakeUserPresets.example.json
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pixi.lock
pixi.lock
 
 
pixi.toml
pixi.toml
 
 

Repository files navigation

Quantum++ Examples

About

Quantum++ Examples are examples of Quantum Computing in C++ using the Quantum++ library. Most examples illustrate the equations, examples and exercises from Nielsen, M., & Chuang, I. (2010). Quantum Computation and Quantum Information: 10th Anniversary Edition. Cambridge: Cambridge University Press. doi:10.1017/CBO9780511976667


Installation instructions

Build has only been tested with the current pixi lock file, and the custom cmake provider. This makes the build process easier.

With pixi

Install pixi from https://prefix.dev/.

Run a pixi shell in the project directory

pixi shell

You can now build and run the examples

cmake --preset default
cd _build/ninja/Release
ninja
ninja test

Alternatively, you can use the preset default directly in VSCode.

Without pixi (untested)

You need to have a compiler, cmake, OpenMP installed. The versions required by the project are pretty high, although probably higher than really necessary. This is why using pixi is recommended.

Build and run the examples (or use VSCode)

cmake --preset no-pixi
cd _build/ninja/Release
ninja
ninja test

This will handle the dependencies (e.g Eigen, googletest) automatically by fetching them in the build directory.

Alternatively, you might ignore the custom provider and install the dependencies yourself (not recommended).

About

Quantum++ Examples

Resources

Readme
MIT license
Activity

Stars

5 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.