Skip to content

General-purpose SDKs

qSim

Maintained by haykkh

I'm building this to learn **C++** and **Quantum Information Theory** simultaneously, so don't be surprised if they're both wrong.

C++MIT
qSim illustration

Resource snapshot

Category

General-purpose SDKs

Stars

10

Last pushed

Aug 15, 2022Updated 4y ago

Open issues

0

What it is

qSim is maintained by haykkh and sits in the Games and learning lane of the open-source quantum map.

I'm building this to learn **C++** and **Quantum Information Theory** simultaneously, so don't be surprised if they're both wrong.

Last verified by Qtangl generator on May 27, 2026

Who it's for

Beginners, educators, and curious developers who want a more approachable path into quantum concepts.

What you can build or learn

  • Get a gentler introduction before diving into full SDKs.
  • See how different projects teach circuits, superposition, and measurement.
  • Identify resources that work well for onboarding or self-study.

License

MIT

SPDX identifier detected from the repository metadata or license files.

Repository README

Preview from the project README.

Rendered as Markdown inside a scrollable preview. Long READMEs stay contained; expand or open on GitHub for the full document.

~265 words · about 1 min readOpen on GitHub

qSim-cpp

Codacy Badge

Quantum computer simulator library

I'm building this to learn C++ and Quantum Information Theory simultaneously, so don't be surprised if they're both wrong. Instead, feel free to create a new issue or a new pull request so you can rub in exactly what I did wrong in a concise, well commented manner.

Thanks x

Installation

Requirements

  • C++14

Instructions

Download or clone qSim-cpp into some/directory/qSim

Usage example

// A confused qubit
// confused.cpp

#include "qSim.h"

using namespace qsim;

int main() {
    // initialize a |0> qubit
    math::Ket qubit = states::z0;

    std::cout << "qubit:\n";
    qubit.print();

    // apply a Hadamard gate to qubit
    qubit *= gates::H;

    std::cout << "confused qubit:\n";
    qubit.print();
}

From this directory, compile confused.cpp using your compiler of choice:

$ g++ -std=c++14 -I some/directory/qSim/include confused.cpp -o confused

Then run your compiled file:

$ ./confused

Should output something like:

qubit:

| 1 |
| 0 |

confused qubit:

| 0.707 |
| 0.707 |

For more examples and usage, please refer to the examples.

Release History

  • 0.0.1
    • Work in progress

Meta

Hayk Khachatryan – chat w/ me – hi@hayk.io

Distributed under the MIT license. See LICENSE for more information.

https://github.com/haykkh/

Contributing

  1. Fork it (https://github.com/haykkh/qSim-cpp/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request
Read on GitHub

Activity

Latest release

—

Watchers

2

Python support

—

Learn digest

Get monthly updates when library entries change.

Monthly digest: new library entries, updated flagships, and one editorial pick.

Related resources

Keep exploring nearby tools.

quantumlib

Cirq

Python framework for creating, editing, and running Noisy Intermediate-Scale Quantum (NISQ) circuits.

PythonApache-2.0Flagship

4,971 stars · Updated 3mo ago

XanaduAI

pennylane

PennyLane is an open-source quantum software platform for quantum computing, quantum machine learning, and quantum chemistry.

PythonApache-2.0FlagshipQtangl relevant

3,229 stars · Updated 3mo ago

QISKit

qiskit

Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.

PythonApache-2.0FlagshipQtangl relevant

7,412 stars · Updated 3mo ago

Qiskit

qiskit-terra

Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.

PythonApache-2.0

7,412 stars · Updated 3mo ago

Microsoft

QuantumKatas

Tutorials and programming exercises for learning Q# and quantum computing

Jupyter NotebookMITFlagshipArchive

4,862 stars · Updated 2y ago

QuantumBFS

Yao.jl

Extensible, Efficient Quantum Algorithm Design for Humans.

JuliaApache-2.0Flagship

1,032 stars · Updated 3mo ago