Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FLOYao no support for nbatch #9

Open
p-luo opened this issue Sep 25, 2023 · 1 comment
Open

FLOYao no support for nbatch #9

p-luo opened this issue Sep 25, 2023 · 1 comment

Comments

@p-luo
Copy link

p-luo commented Sep 25, 2023

In Yao, the zero_state function supports an optional parameter nbatch, whereas FLOYao.zero_state does not (see example below).

using Yao
using FLOYao

nbatch = 10
yao_reg = zero_state(4; nbatch)
floyao_reg = FLOYao.zero_state(4; nbatch)

Is there a way to implement the nbatch in FLOYao?

@jlbosse
Copy link
Collaborator

jlbosse commented Sep 25, 2023

So far FLOYao doesn't support batch simulation of many states in parallel, but evolves a single state by doing (clever) matrix-matrix multiplication. In principle this could be changed to make the content of a MajoranaReg a Array{3,T} instead of Matrix{T}, but that would be a fair bit of work.

What do you want the feature for? Maybe it is easier to just have a vector of MajoranaRegs and use julia's dot-syntax to pipe them through circuits?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants