Skip to content

bloqade.gemini.common.dialects.qubit.stmts.NewAt

← Module overview

classNewAtsource

bloqade.gemini.common.dialects.qubit.stmts.NewAt

Bases: ir.Statement

Allocate a new qubit pinned to the given physical address.

class NewAt

The three int args MUST be compile-time constants (enforced by validation in bloqade.gemini.analysis.new_at_validation). The constant values are read by the circuit→place rewrite chain and stamped into place.NewLogicalQubit.location_address.

Belongs to the gemini.common dialect so it can be used from both logical and physical kernels.

Attributes

NameTypeDefaultDescription
traits—frozenset({lowering.FromPythonCall()})
zone_idir.SSAValueinfo.argument(types.Int)
word_idir.SSAValueinfo.argument(types.Int)
site_idir.SSAValueinfo.argument(types.Int)
qubitir.ResultValueinfo.result(QubitType)