bloqade.visual.animation.base.GatePainter
← Module overview
class
method
sourcemethod
sourcemethod
sourcemethod
sourcemethod
sourcemethod
sourcemethod
sourcemethod
source
classGatePainter¶source
bloqade.visual.animation.base.GatePainter
class GatePainter(mpl_ax, qpu_fov: FieldOfView, scale: float = 1.0)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
mpl_ax | — | required | |
qpu_fov | FieldOfView | required | |
scale | float | 1.0 |
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
artist_objs | Dict[str, GateArtist] | {} | |
artist_methods | Dict[str, Callable] | {'GlobalCZGate': self.process_global_cz_gate, 'GlobalHyperfineRotation': self.process_global_hyperfine_rotation, 'TopHa… |
methodprocess_global_cz_gate¶source
bloqade.visual.animation.base.GatePainter.process_global_cz_gate
def process_global_cz_gate(artist_obj, **kwargs={}) -> NoneParameters
| Name | Type | Default | Description |
|---|---|---|---|
artist_obj | — | required | |
**kwargs | — | {} |
methodprocess_global_hyperfine_rotation¶source
bloqade.visual.animation.base.GatePainter.process_global_hyperfine_rotation
def process_global_hyperfine_rotation(artist_obj, **kwargs={}) -> NoneParameters
| Name | Type | Default | Description |
|---|---|---|---|
artist_obj | — | required | |
**kwargs | — | {} |
methodprocess_tophat_cz_gate¶source
bloqade.visual.animation.base.GatePainter.process_tophat_cz_gate
def process_tophat_cz_gate(artist_obj, **kwargs={}) -> NoneParameters
| Name | Type | Default | Description |
|---|---|---|---|
artist_obj | — | required | |
**kwargs | — | {} |
methodprocess_local_hyperfine_z_rotation_pos¶source
bloqade.visual.animation.base.GatePainter.process_local_hyperfine_z_rotation_pos
Signature
def process_local_hyperfine_z_rotation_pos(artist_obj, **kwargs={}) -> NoneParameters
| Name | Type | Default | Description |
|---|---|---|---|
artist_obj | — | required | |
**kwargs | — | {} |
methodprocess_local_hyperfine_rotation_pos¶source
bloqade.visual.animation.base.GatePainter.process_local_hyperfine_rotation_pos
Signature
def process_local_hyperfine_rotation_pos(artist_obj, **kwargs={}) -> NoneParameters
| Name | Type | Default | Description |
|---|---|---|---|
artist_obj | — | required | |
**kwargs | — | {} |
methodprocess_local_hyperfine_z_rotation¶source
bloqade.visual.animation.base.GatePainter.process_local_hyperfine_z_rotation
def process_local_hyperfine_z_rotation(artist_obj, **kwargs={}) -> NoneParameters
| Name | Type | Default | Description |
|---|---|---|---|
artist_obj | — | required | |
**kwargs | — | {} |
methodprocess_local_hyperfine_rotation¶source
bloqade.visual.animation.base.GatePainter.process_local_hyperfine_rotation
def process_local_hyperfine_rotation(artist_obj, **kwargs={}) -> NoneParameters
| Name | Type | Default | Description |
|---|---|---|---|
artist_obj | — | required | |
**kwargs | — | {} |
methodprocess_gates¶source
bloqade.visual.animation.base.GatePainter.process_gates
def process_gates(gates: List[GateEvent]) -> ListParameters
| Name | Type | Description |
|---|---|---|
gates | List[GateEvent] |
Returns
List