index
@qbead/bloch-sphere
@qbead/bloch-sphere
Namespaces
A set of utilities for standard quantum gates (operators)
Classes
Display angle indicators for a Bloch vector
Abstract base class for all components
A Bloch Sphere Widget
A scene for the Bloch sphere which extends the THREE.Scene class
A class representing a Bloch vector
A class representing a complex number.
Label component for displaying text in 3D space
Quantum operators are 2x2 matrices of complex numbers
A display for a quantum operator
A display for the path a qbit takes when it is rotated by an operator
A display for a path on the Bloch sphere
A display for points on the Bloch sphere
A display for just a qubit arrow
A display for a qubit state on the Bloch sphere
A wedge which is a quarter of a circle
A display for a region on the Bloch sphere
Creates a wedge, that is the outline of a quarter of a circle.
Interfaces
Type Aliases
Properties of a arc on a sphere
Options for the Bloch Sphere widget
A type that can be converted to a Complex number.
Functions
Animation helper function
Get axis of rotation and angle from a quaternion
Format an angle given in radians as a string in degrees with a given precision.
Format an angle given in radians as a string in radians with a given precision.
Format a vector as a string with a given precision.
Gets the properties of an great arc between two vectors
Gets properties of an arc starting from v and rotating about n by angle
Standard linear interpolation function
Linear interpolation function that wraps around 2π
Computes the shortest distance between two angles, considering wrap-around
Last updated