Creates a new Qubit material instance.
Number of quantum states (typically 2^n for n qubits)
Optional
stateVector: StateVectorOptional quantum state vector of complex amplitudes
Gets the number of quantum states.
Sets the number of quantum states.
New number of quantum states
Sets the quantum state vector.
New state vector of quantum amplitudes
Gets the quantum amplitude at a specific basis index.
The basis state index
The quantum amplitude at the specified index
Sets the quantum amplitude at a specific basis index.
The basis state index
The new quantum amplitude
Static
zeroCreates a QubitState for the |0⟩ computational basis state.
New QubitState instance representing |0⟩
Static
oneCreates a QubitState for the |1⟩ computational basis state.
New QubitState instance representing |1⟩
Static
plusCreates a QubitState for the |+⟩ Hadamard basis state.
New QubitState instance representing |+⟩
Static
minusCreates a QubitState for the |−⟩ Hadamard basis state.
New QubitState instance representing |−⟩
Static
fromCreates a QubitState from Bloch sphere angles.
Polar angle (0 to π)
Azimuthal angle (0 to 2π)
New QubitState instance corresponding to the specified angles
Static
fromCreates a QubitState from quantum amplitudes.
New QubitState instance with the specified amplitudes (auto-normalized)
Represents a quantum material specifically for qubit systems.
Qubit extends Q5mMaterial and is specialized for storing quantum state vectors (Amplitude[]) that represent pure qubit states. This class provides the material representation layer for quantum computations.