Skip to content

bloqade.analog.compiler.analysis.hardware.lattice.BasicLatticeValidation

← Module overview

classBasicLatticeValidationsource

bloqade.analog.compiler.analysis.hardware.lattice.BasicLatticeValidation

Bases: BloqadeIRVisitor

This visitor checks that the AtomArrangement is within the bounds of the lattice and that the number of sites is within the maximum number of sites.

class BasicLatticeValidation(capabilities: QuEraCapabilities)

Parameters

NameTypeDescription
capabilitiesQuEraCapabilities

Attributes

NameTypeDefaultDescription
capabilities—capabilities

methodgeneric_visitsource

bloqade.analog.compiler.analysis.hardware.lattice.BasicLatticeValidation.generic_visit

def generic_visit(node)

Parameters

NameTypeDescription
node—
source

methodvisit_registersource

bloqade.analog.compiler.analysis.hardware.lattice.BasicLatticeValidation.visit_register

def visit_register(node: location.AtomArrangement)

Parameters

NameTypeDescription
nodelocation.AtomArrangement
source