Giter VIP home page Giter VIP logo

eldispacho's Introduction

eldispacho

Introduction

eldispacho (Dispatcher) is a singleton that simulates the quantum network itself. Each quantum client connects to the dispatcher, which then simulates channels for communication. Eldispacho has a sense of time and space and thus is where the noise model is located.

Installation

Eldispacho requires the following dependencies:

  • CMake for build process management
  • zmq for client communication
  • cppzmq for C++ bindings to zmq
  • RapidJSON for client RPC encoding/decoding
  • (optional) Doxygen for code documentation

Ensure all required items are installed on your system before attempting to build. If you do not have binaries available, each is available on Github:

The rest of the dependencies are implemented as Git submodules:

  • RapidJSON
  • cppzmq

For each submodule, it will be necessary to clone the codebase into the eldispacho root directory. To do so, execute the follwing:

$ git submodule update --init

Thus, a typical initial installation would look something like:

$ git submodule update --init
$ mkdir build
$ cd build
$ cmake ../
$ make
$ sudo make install

A typical update install would look like:

$ git pull
$ git submodule foreach git pull origin master
$ make
$ sudo make install

Various build options are available when running cmake ../

  • -DBUILD_RELEASE={ON/OFF}

    Specify if you wish to build for release. If NO, then debug is selected and no compiler optimizations are made while assert statements are not stripped from the resulting binary. If YES, then release is selected and maximum compiler optimizations are made while assert statements are stripped from the resulting binary. It is important to note that once you run cmake -BUILD_TYPE ../ in a directory, CMake will cache the value even if you change it later. The easiest way around this is having two build directories, one for debug and one for release.

    Unless you are testing changes to the code, you should just stick with the default value.

  • -DUSE_STATIC={ON/OFF}

    Specify if you wish to use static libraries when building.

Running

Configuration at startup via command line arguments is minimal as only a handful of variables need to be set.

parameter name type required default
--rp rx server endpoint string yes none
--rt rx server thread count Uint no 1
--tp tx server endpoint string yes none
--tt tx server thread count Uint no 1
--s sabot location string yes none
--st sabot client thread count Uint no 1
--l logger server endpoint server no none

A word of caution: If you wish to set interface to localhost, you must use 127.0.0.1 as zmq will not correctly parse the former.

Documentation

To generate code documentation, execute the following:

$ doxygen docs.conf

This will generate and save documentation in docs/ which may be viewed by pointing your web browser to docs/html/index.html.

Programming

Style

Variables use camelCase while other object use underscore_seperated_words. Enums, constants, and statics usually use uppercase underscore_seperated_words.

eldispacho's People

Contributors

ronsadlier avatar

Stargazers

STYLIANOS IORDANIS avatar

Watchers

Alex McCaskey avatar James Cloos avatar Travis Humble avatar

Forkers

stjordanis

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.