# Extended Randomized Benchmarking (XRB)¶

The XRB protocol measures the leakage and unitarity of a qubit (see [3][4]). The unitarity is a measure of how close the noise channel is to a unitary channel. In particular, the unitarity is $$1$$ when noise is entirely unitary, and $$0$$ when the noise is depolarizing.