Giter Club home page Giter Club logo

cuyao.jl's Introduction

Build status:

CUDA support for Yao.jl.

We are in an early-release beta. Expect some adventures and rough edges.

Installation

CuYao is a   Julia Language   package. It provides CUDA support for Yao.jl. To install CuYao, please open Julia's interactive session (known as REPL) and press ] key in the REPL to use the package mode, then type the following command

For stable release

pkg> add CuYao

For current master

pkg> add CuYao#master

You don't need to install Yao if you have CuYao installed. They share the same API except CUDA backend.

Documentation

For documentation of Yao, please refer to documentation (stable).

CuYao.jl provides only two extra APIs, reg |> cu to upload a register to GPU, and cureg |> cpu to download a register to CPU.

To start, see the following example

using CuYao

cureg = rand_state(9; nbatch=1000) |> cu 
cureg |> put(9, 2=>Z)
measure!(cureg |> addbits!(1) |> focus!(4,1,3))
cureg |> relax!(4,1,3) |> cpu

Features

Supported Gates

  • general U(N) gate
  • general U(1) gate
  • better X, Y, Z gate
  • better T, S gate
  • SWAP gate
  • better control gates
  • BP diff blocks

Supported Register Operations

  • measure!, measure_reset!, measure_remove!, select
  • addbit!
  • insert_qubit!
  • focus!, relax!
  • join
  • density_matrix

Other Operations

  • statistic functional diff blocks
  • expect for statistic functional

The Team

This project is an effort of QuantumBFS, an open source organization for quantum science. Yao is currently maintained by Xiu-Zhe (Roger) Luo and Jin-Guo Liu with contributions from open source community. All the contributors are listed in the contributors.

License

CuYao is released under the Apache 2 license.

cuyao.jl's People

Contributors

elisno avatar giggleliu avatar github-actions[bot] avatar juliatagbot avatar roger-luo avatar scottpjones avatar

Watchers

 avatar  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.