Checking a Small Quantum Simulator with Known States

A simulator can be verified with known state-vector entries and ideal measurement probabilities on a small circuit.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace one fixture
  2. Separate numerical and statistical checks

Trace one fixture

Prepare zero, apply a Hadamard, and check both amplitudes against the expected plus state up to any admitted global phase. Apply another and check the return. See two Hadamards.

Separate numerical and statistical checks

Compare amplitudes within a justified numeric tolerance. A finite set of measurement shots instead needs a suitable probability comparison. See floating-point tolerance tests and shot counts.[1][2]

References

  1. John Watrous, The Theory of Quantum Information ↩
  2. John Watrous, IBM Quantum Learning: Basics of Quantum Information ↩