Skip to content

Add/coordinate class - #33

Open
vhoogendijk wants to merge 6 commits into
qbead:mainfrom
vhoogendijk:add/CoordinateClass
Open

vhoogendijk wants to merge 6 commits into
qbead:mainfrom
vhoogendijk:add/CoordinateClass

Conversation

@vhoogendijk

Copy link
Copy Markdown

I added two classes that represent the coordinates and the state of the qubit. This makes it easier to work with in the future, for example gate operations can be added under the quantum state class. The coordinate class makes conversion between the systems easier

@vhoogendijk
vhoogendijk marked this pull request as draft May 2, 2025 12:25
Comment thread src/Qbead.h Outdated
Co-authored-by: Ard Geuze <63558466+ardjuh@users.noreply.github.com>
@vhoogendijk
vhoogendijk marked this pull request as ready for review May 3, 2025 15:36
@vhoogendijk

Copy link
Copy Markdown
Author

units were not being converted so fixed that. Also when setting the coordinates using theta and phi the small unwanted values (order of e-8) would change phi a lot if in 1 or 0 state, so I added rounding. This worked in testbench.

@ardjuh

ardjuh commented May 27, 2025

Copy link
Copy Markdown
Contributor

This are final classes that we are using. These classes help a lot to keep track of everything and also to perform gates and things alike.

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

Successfully merging this pull request may close these issues.

2 participants