Skip to content

Implement Bloch Sphere rendering #461

@albertomercurio

Description

@albertomercurio

Problem Description

Implement the Bloch Sphere rendering. It should follow the same syntax as QuTiP, as showed in this page.

It should also follow the methods already defined for the plot_wigner and plot_fock_distribution functions, allowing for future possible alternative backends. Makie should be enough for the moment.

Proposed Solution

The Bloch sphere constructor should be defined like

b = QuantumToolbox.Bloch()

All the attributes have to be defined using functions like

pnt = [1/sqrt(3), 1/sqrt(3), 1/sqrt(3)]
add_points!(pnt) # Notice the exclamation mark, as it changes the structure of the object
render(b)

Additional Context

Makie Documentation: https://docs.makie.org

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions