Subspace confinement: how good is your qubit?