Quantum computers work by applying quantum operations, such as quantum gates, to delicate quantum states. Ideally, quantum computers can solve complex equations at staggeringly fast speeds that vastly outpace regular computers. In real hardware, the operations of quantum computers often deviate from the ideal behavior because of device imperfections and unwanted noise from the environment. To build reliable quantum machines, researchers need a way to accurately determine what a quantum device is actually doing.