logiq

Logiq, a simple to use quantum simulator library


License
MIT
Install
pip install logiq==0.1.3

Documentation

Logiq, a simple quantum logic simulator


Logiq is a python library to simulate the logic of the quantum world, and not only the computation aspects.

Main aspects

This library aims to make easy and simple the using of the quantum states (i.e. qubits and something more 😉), operator, basis and mostly, how these interacts with each other.

To achieve this, the library is focused to add a great layer of abstraction to gain simplicity and in comprehensibility.

This layer includes:

  • Great support for the bra-ket notation to represent the states.
  • Treatment of quantum states in a more general point of view, this means mainly that:
    • "qudit" (quantum d-git) state are supported
    • Every kind of state have same methods and same behaviour (easy to use!)
  • Custom creation of bases and operators
  • The elimination of the registers concept, so every quantum state have a life of its own and they aren't bind to a position in the registers.

Start with logiq

To start I suggest you to read first of all an introduction to the main objects of logiq:

Then you can easily read this (a friendly introduction in the use of logiq)

If you want more go here, you can find some example, explanation of quantum phenomena (using logiq), implementation of most known algorithms and more.


Installation

Logiq is written for python3 (the minimum version tested is 3.6.8) and the only package required is numpy.

You can easily install it using pip: (suggested way)

$ pip install logiq

Or cloning this repository and manually install it:

$ git clone git@github.com:Bnz-0/logiq.git
$ pip install ./logiq

Contacts

Do not hesitate to contact me for anything 😉