Skip to content

RFC: Migrating physical dialect to bloqade-circuit #580

@johnzl-777

Description

@johnzl-777

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.

Metadata

Metadata

Assignees

Labels

rfcRequest for Commentssquinsquin related issuesstimIssues regarding the stim dialect

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions