How to measure the performance of a quantum computer