Static
getRetrieves detailed information about the amplitudes of a quantum state.
The quantum state to analyze.
Configuration options for the output.
An array of AmplitudeDisplay
objects.
Static
renderRenders the state vector as a formatted text string in Dirac notation.
The quantum state to render.
Configuration options for rendering.
A string representing the state vector.
Static
renderRenders the state's probability distribution as a formatted ASCII table.
The quantum state to render.
Configuration options for rendering.
A string containing the ASCII table.
Static
getGenerates the Bloch sphere representation for a single qubit.
The single qubit to represent.
A BlochSphereData
object with the coordinates and angles.
Static
getGenerates data for a probability histogram visualization.
The quantum state to visualize.
Configuration options for the histogram.
A ProbabilityHistogram
object.
Static
getGenerates data for visualizing the phase and magnitude of each state component.
The quantum state to visualize.
A PhaseVisualization
object.
Static
renderRenders the state's probability distribution as an ASCII bar chart.
The quantum state to render.
The maximum width of the bar chart in characters. Defaults to 50.
A string containing the ASCII bar chart.
Static
compareCompares two quantum states and returns a summary of their differences.
The first quantum state.
The second quantum state.
A string containing a comparison table and fidelity/distance metrics.
Static
getGenerates a summary of key statistics for a quantum state.
The quantum state to summarize.
A string containing summary statistics like entropy and purity.
Provides static methods for visualizing and analyzing quantum states.
This class can render quantum states in various formats, including amplitude displays, probability histograms, and Bloch sphere data for single qubits.