bloqade.stim.rewrite.qubit_to_stim.SquinGateToStim
← Module overview
class
method
sourcemethod
sourcemethod
sourcemethod
sourcemethod
sourcemethod
source
classSquinGateToStim¶source
bloqade.stim.rewrite.qubit_to_stim.SquinGateToStim
Bases: RewriteRule
class SquinGateToStim(address_analysis: dict[ir.SSAValue, Address])Parameters
| Name | Type | Description |
|---|---|---|
address_analysis | dict[ir.SSAValue, Address] |
Attributes
| Name | Type | Description |
|---|---|---|
address_analysis | dict[ir.SSAValue, Address] |
methodrewrite_Statement¶source
bloqade.stim.rewrite.qubit_to_stim.SquinGateToStim.rewrite_Statement
def rewrite_Statement(node: ir.Statement) -> RewriteResultParameters
| Name | Type | Description |
|---|---|---|
node | ir.Statement |
Returns
RewriteResult
methodrewrite_SingleQubitGate¶source
bloqade.stim.rewrite.qubit_to_stim.SquinGateToStim.rewrite_SingleQubitGate
Signature
def rewrite_SingleQubitGate(stmt: gate.stmts.SingleQubitGate) -> RewriteResultParameters
| Name | Type | Description |
|---|---|---|
stmt | gate.stmts.SingleQubitGate |
Returns
RewriteResult
methodrewrite_ControlledGate¶source
bloqade.stim.rewrite.qubit_to_stim.SquinGateToStim.rewrite_ControlledGate
Signature
def rewrite_ControlledGate(stmt: gate.stmts.ControlledGate) -> RewriteResultParameters
| Name | Type | Description |
|---|---|---|
stmt | gate.stmts.ControlledGate |
Returns
RewriteResult
methodrewrite_TwoQubitGate¶source
bloqade.stim.rewrite.qubit_to_stim.SquinGateToStim.rewrite_TwoQubitGate
def rewrite_TwoQubitGate(stmt: gate.stmts.TwoQubitGate) -> RewriteResultRewrite a squin two-qubit gate into its Stim equivalent.
Parameters
| Name | Type | Description |
|---|---|---|
stmt | gate.stmts.TwoQubitGate |
Returns
RewriteResult
methodrewrite_RotationGate¶source
bloqade.stim.rewrite.qubit_to_stim.SquinGateToStim.rewrite_RotationGate
def rewrite_RotationGate(stmt: gate.stmts.RotationGate) -> RewriteResultParameters
| Name | Type | Description |
|---|---|---|
stmt | gate.stmts.RotationGate |
Returns
RewriteResult
methodrewrite_U3Gate¶source
bloqade.stim.rewrite.qubit_to_stim.SquinGateToStim.rewrite_U3Gate
def rewrite_U3Gate(stmt: gate.stmts.U3) -> RewriteResultParameters
| Name | Type | Description |
|---|---|---|
stmt | gate.stmts.U3 |
Returns
RewriteResult