Closed rmlarose closed 3 years ago
This could be useful for Pauli twirling as well since it depends on being able to change the basis of error operators to Paul basis. I am working on a MEP document for twirling (#513). There's a proposed function which will check if the error representation is known or not, if it is known then the twirling process can proceed or end the process with an error message.
Perhaps I could define this function in general instead of being specific to twirling. Such a function could also be used for other methods dependent on known error representation.
This issue had no activity for 2 months, and will be closed in one week unless there is new activity. Cheers!
If there is an operation without a known representation, the current behavior is to throw an error when sampling and PEC will not run. I think by default we should skip such operations and only sample from the pool of provided representations. Perhaps we could add a flag for the current behavior, e.g.
error_on_missing_representation
.From @andreamari in https://github.com/unitaryfund/mitiq/issues/504#issuecomment-769220204