Coder Social home page Coder Social logo

floyao.jl's People

Contributors

jlbosse avatar roger-luo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

floyao.jl's Issues

Make backprop faster

Currently, the function expect_g(op::AbstractAdd, reg::MajoaranaReg) takes time O(n^3) because of the full matrix-matrix product. It may be possible to speed this up by not instantiating the full matrix form of op in the Majorana basis.

Add support for arbitrary observables

Currently only observables that are squares of Majoranas are supported in expect(). But generally, it is possible to calculate $⟨ψ|O|ψ⟩$ for arbitrary operators $O$ of the form $O = ∏_i L_i = ∏_i (∑_j O_{ij} γ_j)$ by calculating the pfaffian of the two-point matrix $M_{ij} = ⟨ψ|L_i L_j|ψ⟩$.

Create new tangent type for MajoranaReg?

In order to get backward mode AD working I had to add the function :(*)(number::Real, reg::MajoranaReg) which is only a sensible operation if reg is a (co-)tangent register and not sensible if it is the primal register. This opens up potential incosistencies because we can do
expect(op, a * reg) but this doesn't satisfy expect(op, a * reg) == a * expect(op, reg).

One possible solution here is to add a TangentMajoranaReg type and only allow multiplication
with a scalar for that one.

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Add `FLOYao.rand_state()`

Currently there is no function to generate random MajoranaRegs. Ideally, such a FLOYao.rand_state() function would generate states that are Haar randomly distributed in $O(2nq)$. I could either use

  • RandomMatrices.rand(Haar(1), 2nq)
  • use [this algorithm](https://en.wikipedia.org/wiki/Orthogonal_matrix#Randomization)
    to generate such Haar random matrices.

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.