Skip to content

statements

global_r

global_r(axis_angle: float, rotation_angle: float)

Apply a global R gate over all zones.

Parameters:

Name Type Description Default
axis_angle float

The angle of the axis for the R gate.

required
rotation_angle float

The angle of rotation for the R gate.

required
Source code in src/bloqade/shuttle/dialects/gate/_interface.py
52
53
54
55
56
57
58
59
60
61
@_wraps(GlobalR)
def global_r(axis_angle: float, rotation_angle: float):
    """Apply a global R gate over all zones.

    Args:
        axis_angle (float): The angle of the axis for the R gate.
        rotation_angle (float): The angle of rotation for the R gate.

    """
    ...

global_rz

global_rz(rotation_angle: float)

Apply a global Rz gate over all zones.

Parameters:

Name Type Description Default
rotation_angle float

The angle of rotation for the Rz gate.

required
Source code in src/bloqade/shuttle/dialects/gate/_interface.py
64
65
66
67
68
69
70
71
72
@_wraps(GlobalRz)
def global_rz(rotation_angle: float):
    """Apply a global Rz gate over all zones.

    Args:
        rotation_angle (float): The angle of rotation for the Rz gate.

    """
    ...

local_r

local_r(
    axis_angle: float,
    rotation_angle: float,
    zone: grid.Grid[Any, Any],
) -> None

Apply a local Rz gate to a zone.

Parameters:

Name Type Description Default
rotation_angle float

The angle of rotation for the Rz gate.

required
zone GridType[Any, Any]

The grid zone where the gate is applied.

required
Source code in src/bloqade/shuttle/dialects/gate/_interface.py
38
39
40
41
42
43
44
45
46
47
48
49
@_wraps(LocalR)
def local_r(
    axis_angle: float, rotation_angle: float, zone: grid.Grid[Any, Any]
) -> None:
    """Apply a local Rz gate to a zone.

    Args:
        rotation_angle (float): The angle of rotation for the Rz gate.
        zone (grid.GridType[Any, Any]): The grid zone where the gate is applied.

    """
    ...

local_rz

local_rz(
    rotation_angle: float, zone: grid.Grid[Any, Any]
) -> None

Apply a local Rz gate to a zone.

Parameters:

Name Type Description Default
rotation_angle float

The angle of rotation for the Rz gate.

required
zone GridType[Any, Any]

The grid zone where the gate is applied.

required
Source code in src/bloqade/shuttle/dialects/gate/_interface.py
26
27
28
29
30
31
32
33
34
35
@_wraps(LocalRz)
def local_rz(rotation_angle: float, zone: grid.Grid[Any, Any]) -> None:
    """Apply a local Rz gate to a zone.

    Args:
        rotation_angle (float): The angle of rotation for the Rz gate.
        zone (grid.GridType[Any, Any]): The grid zone where the gate is applied.

    """
    ...

top_hat_cz

top_hat_cz(
    zone: grid.Grid[Any, Any],
    upper_buffer: float = 3.0,
    lower_buffer: float = 3.0,
) -> None

Apply a top hat CZ gate.

Parameters:

Name Type Description Default
zone GridType[Any, Any]

The grid zone where the gate is applied.

required
upper_buffer float

The upper buffer distance for the top hat above the zone.

3.0
lower_buffer float

The lower buffer distance for the top hat below the zone.

3.0
Source code in src/bloqade/shuttle/dialects/gate/_interface.py
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@_wraps(TopHatCZ)
def top_hat_cz(
    zone: grid.Grid[Any, Any],
    upper_buffer: float = 3.0,
    lower_buffer: float = 3.0,
) -> None:
    """Apply a top hat CZ gate.

    Args:
        zone (grid.GridType[Any, Any]): The grid zone where the gate is applied.
        upper_buffer (float): The upper buffer distance for the top hat above the zone.
        lower_buffer (float): The lower buffer distance for the top hat below the zone.

    """
    ...