GithubHelp home page GithubHelp logo

00mjk / qnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mabuchilab/qnet

0.0 0.0 0.0 6.83 MB

Computer algebra package for quantum mechanics and photonic quantum networks

Home Page: https://qnet.readthedocs.io/

License: MIT License

Python 99.65% Makefile 0.35%

qnet's Introduction

QNET

Source code on Github QNET on the Python Package Index Join the chat at https://gitter.im/mabuchilab/QNET Travis Continuous Integration Appveyor Continuous Integration Coveralls Documentation Status MIT License

Computer algebra package for quantum mechanics and photonic quantum networks

Development of QNET happens on Github. You can read the full documentation at ReadTheDocs.

Features

  • Extensible computer algebra system for quantum operators, quantum states, super operators
  • Building on SymPy for scalar symbolic algebra
  • Implementation of Gough and James' SLH algebra for photonic quantum circuits
  • Designed for use within the Jupyter notebook
  • Publication-ready, configurable rendering of mathematical formulas
  • Conversion to QuTiP objects for numerical simulation

Note that version 2.0 of QNET is a major redesign. See :ref:`History <history>` for details.

Dependencies

  • Python version 3.5 or higher. The last version of QNET to support Python 2 is 1.4.3.
  • The SymPy symbolic algebra Python package to implement symbolic 'scalar' algebra, i.e., the coefficients of state, operator or super-operator expressions can be symbolic SymPy expressions as well as pure python numbers.
  • The NumPy package for numerical calculations
  • Optional: QuTiP python package as an extremely useful, efficient and full featured numerical backend. Operator expressions where all symbolic scalar parameters have been replaced by numeric ones, can be converted to (sparse) numeric matrix representations, which are then used to solve for the system dynamics using the tools provided by QuTiP.
  • Optional: The PyX python package for visualizing circuit expressions as box/flow diagrams. This requires a LaTeX installation on your system. On Linux/Macos and Windows TeX Live and MiKTeX are recommended, respectively.

A convenient way of obtaining Python as well as some of the packages listed here (SymPy, SciPy, NumPy) is to download Anaconda Python Distribution, which is free for academic use. A highly recommended way of working with QNET and QuTiP, or scientific python codes in general is through the excellent IPython command-line shell, or the very polished browser-based Jupyter notebook interface.

Installation

To install the latest released version of QNET, run this command in your terminal:

$ pip install qnet

This is the preferred method to install QNET, as it will always install the most recent stable release.

If you don't have pip installed, this Python installation guide can guide you through the process.

To install the latest development version of QNET from Github.

$ pip install git+https://github.com/mabuchilab/qnet.git@develop#egg=qnet

Usage

To use QNET in a project:

import qnet

qnet's People

Contributors

bitdeli-chef avatar chronum94 avatar danielwe avatar gitter-badger avatar goerz avatar ntezak avatar rhamerly avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.