-
Notifications
You must be signed in to change notification settings - Fork 1
Description
For some context, there is an existing dialect called physical hosted elsewhere that contains additional statements to define detectors and observables (literally SetDetector and SetObservable) that can then produce stim's INCLUDE_OBSERVABLE and DETECTOR annotations via existing code generation infrastructure.
It would be useful to have these statements in bloqade-circuit to enable more QEC functionality and would have the added benefit of cutting down on duplicate infrastructure in other projects (one could just dependent on circuit directly instead of having a slightly different version of passes floating around).
To kill two birds with one stone, @cduck has pointed out physical is not a great name and should be changed. So, if the migration is agreed upon then we should also consider a more fitting name
This requested was pitched by @rafaelha originally and I am in favor of it.