quantumbfs / floyao.jl Goto Github PK
View Code? Open in Web Editor NEWA fermionic linear optics simulator backend for Yao.jl
License: Apache License 2.0
A fermionic linear optics simulator backend for Yao.jl
License: Apache License 2.0
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.
Currently only observables that are squares of Majoranas are supported in expect()
. But generally, it is possible to calculate
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.
I moved the docs from the (very long) README do docs/
and creating them locally via
pkg> activate docs/
julia> include("docs/make.jl")
works fine and the doctests pass. However, they do not get deployed online (or at least the link https://quantumbfs.github.io/FLOYao.jl/dev/) does not work yet.
@Roger-luo I am sure you know how to fix that
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!
The title says it all. We probably want to be consistent with the Yao
API here and return
complex numbers, even though the imaginary part should always be zero. At least with the observables that are supported so far.
Currently there is no function to generate random MajoranaReg
s. Ideally, such a FLOYao.rand_state()
function would generate state
s that are Haar randomly distributed in
RandomMatrices.rand(Haar(1), 2nq)
[this algorithm](https://en.wikipedia.org/wiki/Orthogonal_matrix#Randomization)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.