-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
rfcRequest for CommentsRequest for Commentssquinsquin related issuessquin related issuesstimIssues regarding the stim dialectIssues regarding the stim dialect
Description
Currently you can access the annotate dialect via the squin module directly:
@squin.kernel
def demo():
qs = squin.qalloc(4)
ms = squin.broadcast.measure(qs)
squin.set_detector([ms[0], ms[1]], coordinates=(0,0)While this is great in terms of convenience @david-pl brought up here (#603 (review)) that it's not clearly defined what the user expectation should be if they feed a program with annotation present to other interpreters/emitters for things like PyQrack/Cirq.
@kaihsin pitched this to me in person (and I'm putting it in RFC from to see if there's any reservations about this) that annotate should be something that users would have to explicitly import as opposed to access directly from squin:
from bloqade import annotate
@squin.kernel
def demo():
qs = squin.qalloc(4)
ms = squin.broadcast_measure(qs)
annotate.set_detector([ms[0], ms[1]], coordinates=(0,0))This would be pretty easy to do, I just don't route things through squin but preserve the current squin dialect group definition.
cduck and weinbe58
Metadata
Metadata
Assignees
Labels
rfcRequest for CommentsRequest for Commentssquinsquin related issuessquin related issuesstimIssues regarding the stim dialectIssues regarding the stim dialect