iraqnroll / quantumSim

A quantum circuit simulator written in C.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QuantumSim

QuantumSim is a small C library with no external dependencies that allows you to define, operate and measure quantum circuits.

Features

  • Functional qubit data structure in a form of a Bloch sphere.
  • N-sized qubit register data structure.
  • Various quantum gates to operate the circuit with in respect to a single qubit or specified qubits in the register :
    • Pauli-X/NOT gate
    • Pauli-Y gate
    • Pauli-Z/Phase-flip gate
    • Hadamard gate
    • CNOT gate
    • SWAP gate
  • A few examples on how to use the library, including an implementation of the Deutsch-Josza algorithm for a n-sized input.
  • Functionality to display register and applied gates in a 2D ASCII image.

About

A quantum circuit simulator written in C.


Languages

Language:C 100.0%