Coder Social home page Coder Social logo

dannygoodacre / magpy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brownadder/magpy

0.0 0.0 0.0 189 KB

Magnus based time-integration for spins and qubits under a magnetic field

License: MIT License

Python 21.79% Jupyter Notebook 78.21%

magpy's Introduction

Magnus based time-integration for qubits under a magnetic field.

Installation

MagPy may be installed via pip:

pip install magpy

To build from source:

  1. Clone this repository

  2. Install the base requirements

  3. Run python3 -m build . from the root directory

magpy's People

Contributors

dannygoodacre avatar brownadder avatar gc759 avatar

magpy's Issues

Finalise str and repr for core objects

The three objects

  • PauliString
  • HamiltonianOperator
  • FunctionProduct

require their str and repr functions to be finalised.

Current issues:

  • incorrect order of tensors and functions
  • incorrect display of PauliStrings when an HOp has multiple qubits

Fix unit tests

The entire unit test suite is out of date. It needs to be updated to match recent changes.

Add tensor support to core objects

The core objects currently only support scalar coefficients. Adding tensor coefficient support allows for easy batching of systems.

For example H = tensor(1,2)*X + sin*Y is a parallel system of H1 = X + sin*Y and H2 = 2*X +sin*Y.

Scalar-valued functions will distribute across the batch, and vector-valued functions must agree with the batch's length. For now, we will not support batching vector-valued functions, e.g. distributing repeating a 2-wide function across a 4-wide batch.

Magnus expansion with batching

Add support for evaluating the Magnus expansion of the new batched Hamiltonian operators.

Given a Hamiltonian with a batch size k and n qubits and a list of m intervals, then we return a tensor with shape (m, k, n, n).

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.