A practical introduction to qubits, gates, measurement, and building your first entangled circuit in Qly.
A qubit is the quantum version of a bit. Instead of being strictly 0 or 1, a qubit can be in a superposition of both until it is measured. Measurement collapses the state to a classical 0 or 1 with probabilities determined by the state amplitudes.
When you measure a qubit, you sample from its state. Repeating a circuit many times (shots) gives a distribution of outcomes. In Qly, you can configure shots and see histograms to understand behavior.
CNOT: flips the target qubit if the control is 1. With superposition on the control, CNOT can generate entanglement.
Try this now in Qly Compute — see the Bell-state example in the modes guide.
Visualize a qubit as a point on a sphere. X, Y, and Z are pi rotations around the respective axes. H maps between computational and diagonal bases, enabling interference.
With Qly you can simulate circuits and run them on AWS Braket directly from your account. This lets you compare ideal simulations against real device behavior.