Skip to content

bloqade.visual.animation.base.GatePainter

← Module overview

classGatePaintersource

bloqade.visual.animation.base.GatePainter

class GatePainter(mpl_ax, qpu_fov: FieldOfView, scale: float = 1.0)

Parameters

NameTypeDefaultDescription
mpl_ax—required
qpu_fovFieldOfViewrequired
scalefloat1.0

Attributes

NameTypeDefaultDescription
artist_objsDict[str, GateArtist]{}
artist_methodsDict[str, Callable]{'GlobalCZGate': self.process_global_cz_gate, 'GlobalHyperfineRotation': self.process_global_hyperfine_rotation, 'TopHa…

methodprocess_global_cz_gatesource

bloqade.visual.animation.base.GatePainter.process_global_cz_gate

def process_global_cz_gate(artist_obj, **kwargs={}) -> None

Parameters

NameTypeDefaultDescription
artist_obj—required
**kwargs—{}
source

methodprocess_global_hyperfine_rotationsource

bloqade.visual.animation.base.GatePainter.process_global_hyperfine_rotation

def process_global_hyperfine_rotation(artist_obj, **kwargs={}) -> None

Parameters

NameTypeDefaultDescription
artist_obj—required
**kwargs—{}
source

methodprocess_tophat_cz_gatesource

bloqade.visual.animation.base.GatePainter.process_tophat_cz_gate

def process_tophat_cz_gate(artist_obj, **kwargs={}) -> None

Parameters

NameTypeDefaultDescription
artist_obj—required
**kwargs—{}
source

methodprocess_local_hyperfine_z_rotation_possource

bloqade.visual.animation.base.GatePainter.process_local_hyperfine_z_rotation_pos

Signature
def process_local_hyperfine_z_rotation_pos(artist_obj, **kwargs={}) -> None

Parameters

NameTypeDefaultDescription
artist_obj—required
**kwargs—{}
source

methodprocess_local_hyperfine_rotation_possource

bloqade.visual.animation.base.GatePainter.process_local_hyperfine_rotation_pos

Signature
def process_local_hyperfine_rotation_pos(artist_obj, **kwargs={}) -> None

Parameters

NameTypeDefaultDescription
artist_obj—required
**kwargs—{}
source

methodprocess_local_hyperfine_z_rotationsource

bloqade.visual.animation.base.GatePainter.process_local_hyperfine_z_rotation

def process_local_hyperfine_z_rotation(artist_obj, **kwargs={}) -> None

Parameters

NameTypeDefaultDescription
artist_obj—required
**kwargs—{}
source

methodprocess_local_hyperfine_rotationsource

bloqade.visual.animation.base.GatePainter.process_local_hyperfine_rotation

def process_local_hyperfine_rotation(artist_obj, **kwargs={}) -> None

Parameters

NameTypeDefaultDescription
artist_obj—required
**kwargs—{}
source

methodprocess_gatessource

bloqade.visual.animation.base.GatePainter.process_gates

def process_gates(gates: List[GateEvent]) -> List

Parameters

NameTypeDescription
gatesList[GateEvent]

Returns

List

source