You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initialization in QASM256 is straightforward and allows for flexibility in defining quantum states. It includes support for single-qubit, multi-qubit, and entangled state initialization.
Syntax:
INIT |ψ> AS Q[n];
|ψ>: Represents the desired initial state.
Q[n]: Specifies the qubit or register to initialize.
Initialize a single qubit to state |0>:
INIT |0> AS Q[1];
Initialize an entire register to |+> (superposition)