spheres.visualization.operator_sphere.OperatorSphere

class spheres.visualization.operator_sphere.OperatorSphere(dm, scene=None, pos=<0, 0, 0>)[source]

Bases: object

Visualization for density matrices and operators. Using the spherical tensor decomposition, the operator or density matrix is represented by a series of concentric spheres with their own constellations. The operator/density matrix is represented by a list of integer valued spin states. The norms of these states become the radii of the spheres, and the phases of the states become the colors. The spin-0 sector is represented by the label at the bottom. For hermitian matrices, the constellations all have antipodal symmetry. The lower spin states can be interpreted as the partial states in the permutation symmetric qubit representation.

__init__(dm, scene=None, pos=<0, 0, 0>)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(dm[, scene, pos])

Initialize self.

destroy()

Destroys the Operator sphere.

evolve(H[, dt, T])

Evolves the mixed state/operator, updating the visual in real time.

mousedown()

mousemove()

mouseup()

refresh()

destroy()[source]

Destroys the Operator sphere.

evolve(H, dt=0.05, T=6.283185307179586)[source]

Evolves the mixed state/operator, updating the visual in real time.

Parameters
  • H (qt.Qobj) – Hamiltonian.

  • dt (float) – Time step.

  • T (float) – Time interval.