The Pauli-Z gate leaves the zero component unchanged and reverses the sign of the one component. It changes relative phase rather than swapping computational basis states. If a qubit is measured immediately in the zero-one basis, a Z gate alone does not alter the outcome probabilities. But after another gate mixes amplitudes, the phase difference can affect interference. That is why phase operations are computationally meaningful even when they are not directly visible in one measurement basis.
This distinction is important because quantum measurements provide specific outcomes, while the underlying state can contain more information than any single outcome reveals.
A useful way to remember this concept is to separate the mathematical description from the outcome of an experiment. The equation tells us how the relevant states or operations are related. In a quantum processor, the concept is useful only when the device can be prepared, controlled, and measured reliably. A mathematical operation may look simple on paper, while the physical implementation must contend with calibration errors, unwanted interactions, and limited coherence time. A practical circuit is therefore more than a sequence of symbols.
Engineers must choose a hardware platform, translate the intended operations into available controls, and check the measured output over repeated runs. This is how abstract quantum information becomes an experimentally testable computation. A carefully chosen measurement then lets us test those relationships, within the limits imposed by real experimental hardware. the Z gate demonstrates that quantum information includes phase as well as probability.