QuantumLibraries icon indicating copy to clipboard operation
QuantumLibraries copied to clipboard

Extend call counting allowances

Open cgranade opened this issue 5 years ago • 1 comments

Is your feature request related to a problem? Please describe. With https://github.com/microsoft/QuantumLibraries/pull/302, new allowance operations were introduced to enforce that a given operation is called at most a given number of times. As per @tcNickolas' feedback, it would be good to extend these allowances in a few ways:

  • Keep running after allowances fail until adjoint-allowance is hit, so to give better diagnostic data about where disallowed calls occur.
  • Support allowing lists of related operations rather than individual operations.
  • Provide more meaningful output when number of allowed calls is zero; possibly even a shorthand DenyOperation.

cgranade avatar Aug 19 '20 17:08 cgranade

New bug filed related to this operation : https://github.com/microsoft/QuantumLibraries/issues/386

guenp avatar Dec 07 '20 17:12 guenp