Validation ========== On a state-vector emulator, the ported circuits reproduce the classical QLB solver to machine precision. The figure of merit is the maximum absolute density deviation :math:`\max|\Delta\rho|` over all sites and recorded times; the state fidelity is 1 to twelve digits throughout. .. list-table:: Circuit vs. classical solver :header-rows: 1 :widths: 34 26 24 16 * - Test - Lattice (qubits) - Physics - :math:`\max|\Delta\rho|` * - 1D free / barrier / phase - :math:`2^6` line (8) - massless & massive - :math:`3.7\times10^{-12}` * - 2D oblique Klein - :math:`2^5\times2^5` (12) - massless barrier - :math:`4.7\times10^{-16}` * - 3D diagonal mover - :math:`2^4\times2^4\times2^4` (14) - massless free - :math:`1.0\times10^{-17}` * - 3D reflecting box - :math:`2^5\times2^5\times2^5` (17) - massless, bounce-back - :math:`6.7\times10^{-17}` One dimension ------------- Klein transmission of a massless packet through a barrier, the phase the barrier imprints, massive-particle Zitterbewegung, and massive-barrier reflection. Classical solver (lines) and circuit (markers) coincide in every panel. .. figure:: ../qlb_port/validation_overlay.png :width: 100% :alt: 1D validation Two dimensions -------------- A massless packet at oblique incidence on a barrier splits into reflected and transmitted lobes (:math:`R\approx0.38`). Columns: classical density, circuit density, their absolute difference. .. figure:: ../qlb_port/validation_2d.png :width: 100% :alt: 2D oblique Klein tunneling Three dimensions: reflecting box -------------------------------- An oblique massless packet launched from a corner of a :math:`32^3` box bounces off all three reflecting walls and returns; the circuit (cyan contours) matches the classical scheme (filled) to :math:`6.7\times10^{-17}`, with probability conserved. .. figure:: ../qlb_port/validation_bc.png :width: 100% :alt: 3D reflecting box These figures are regenerated by the ``plot_validation*.py`` scripts in :mod:`qlb_port`.