quil-lang / quilc

The optimizing Quil compiler.
Apache License 2.0
454 stars 73 forks source link

Add tolerance check #820

Closed aijony closed 2 years ago

aijony commented 2 years ago

Description: When using a tolerance pragma (e.g. PRAGMA TOLERANCE "0.5"), print global phase invariant distance (arXiv:2106.07099) instead of erroring when matrices are inevitably in the wrong projective class (e.g. #Matrices have a phase invariant distance of 0.29746263355117152d0).

Changes: