Class BlochSphere

java.lang.Object
org.episteme.natural.physics.quantum.BlochSphere

public class BlochSphere extends Object
Bloch Sphere representation for single-qubit quantum states.

A pure qubit state $|\psi\rangle = \cos(\theta/2)|0\rangle + e^{i\phi}\sin(\theta/2)|1\rangle$ is represented as a point on the unit sphere.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Field Details

    • STATE_ZERO

      public static final Real[] STATE_ZERO
      Special states on the Bloch sphere (Coordinates).
    • STATE_ONE

      public static final Real[] STATE_ONE
    • STATE_PLUS

      public static final Real[] STATE_PLUS
    • STATE_MINUS

      public static final Real[] STATE_MINUS
    • STATE_PLUS_I

      public static final Real[] STATE_PLUS_I
    • STATE_MINUS_I

      public static final Real[] STATE_MINUS_I
  • Constructor Details

    • BlochSphere

      public BlochSphere()
  • Method Details

    • toBlochCoordinates

      public static Real[] toBlochCoordinates(Complex alpha, Complex beta)
      Converts qubit amplitudes to Bloch sphere coordinates.
      Parameters:
      alpha - Amplitude of |0⟩ state
      beta - Amplitude of |1⟩ state
      Returns:
      Real[3] = {x, y, z} on unit sphere
    • fromBlochAngles

      public static Complex[] fromBlochAngles(Real theta, Real phi)
      Converts Bloch sphere coordinates back to qubit state.
      Parameters:
      theta - Polar angle (0 to π)
      phi - Azimuthal angle (0 to 2Ï€)
      Returns:
      Complex[2] = {alpha, beta}