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

[Register] Quantum Register #9

Closed
Roger-luo opened this issue Apr 21, 2018 · 1 comment
Closed

[Register] Quantum Register #9

Roger-luo opened this issue Apr 21, 2018 · 1 comment
Labels
block bugs, discussions about blocks
Milestone

Comments

@Roger-luo
Copy link
Member

Register is something contains a quantum states. Since a quantum state of N qubits is actually a rank-N tensor. All quantum registers supports the interface of julia arrays.

To preserve memory contiguous, we use the last dimension as our batch dimension. An naive implementation could be

struct Register{M, B, T, N} <: AbstractRegister{M, B, T, N}
    data::Array{T, N}
end

where M is the number of qubits, and B is the number of batches.

@Roger-luo Roger-luo added the block bugs, discussions about blocks label Apr 21, 2018
@Roger-luo Roger-luo added this to the v0.1 milestone Apr 21, 2018
@Roger-luo
Copy link
Member Author

Done #10

Roger-luo added a commit that referenced this issue Dec 7, 2021
Roger-luo pushed a commit that referenced this issue Dec 8, 2021
Roger-luo pushed a commit that referenced this issue Dec 8, 2021
* update Shor algorithm

* fix test

* add shor to readme
GiggleLiu added a commit that referenced this issue Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
block bugs, discussions about blocks
Projects
None yet
Development

No branches or pull requests

1 participant