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

Bloch Sphere conversion #5

Open
stewdio opened this issue Jun 6, 2019 · 2 comments · May be fixed by #26
Open

Bloch Sphere conversion #5

stewdio opened this issue Jun 6, 2019 · 2 comments · May be fixed by #26

Comments

@stewdio
Copy link
Owner

stewdio commented Jun 6, 2019

Qubit needs methods for converting between matrices and Bloch Spheres. From 𝒂 and 𝒃 to θ and ϕ and back again. And also from θ and ϕ to XYZ; coordinates for the point on the surface of the sphere.

@stewdio
Copy link
Owner Author

stewdio commented Jun 25, 2019

Created Q.Qubit.toBlochSphere with b9550dd

But still do not have a Q.Qubit.fromBlochSphere. (Is this possible or is some phase information lost and therefore perfect conversion back is not possible?)

@marwahaha
Copy link
Contributor

marwahaha commented Sep 13, 2020

The only thing that seems to be lost is the "symbol" and the "name" of the Q.Qubit .

The idea for the Bloch sphere is that it captures all the information of a single qubit.

Edit: specifying complex $a$ and $b$ has extra information (i.e. 4 real numbers); so converting back you can only know the phase difference between $a$ and $b$.

@marwahaha marwahaha linked a pull request Sep 13, 2020 that will close this issue
Altanali added a commit that referenced this issue Aug 13, 2021
Reduce width of palette on creation in a JupyterNotebook via braket()…
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 a pull request may close this issue.

2 participants