Skip to content

Quera

QuEraDeviceRoute

QuEraDeviceRoute(parent: Optional[Builder] = None)

Bases: Builder

Source code in .venv/lib/python3.12/site-packages/bloqade/analog/builder/base.py
10
11
12
13
14
def __init__(
    self,
    parent: Optional["Builder"] = None,
) -> None:
    self.__parent__ = parent

aquila

aquila()

Specify QuEra's Aquila QPU

Return

QuEraHardwareRoutine

  • Possible Next:

    -> ...aquila().submit :: submit aync remote job

    -> ...aquila().run :: submit job and wait until job finished and results returned

    -> ...aquila().__callable__ :: submit job and wait until job finished and results returned

Source code in .venv/lib/python3.12/site-packages/bloqade/analog/builder/backend/quera.py
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
def aquila(self):
    """
    Specify QuEra's Aquila QPU

    Return:
        QuEraHardwareRoutine


    - Possible Next:

        -> `...aquila().submit`
            :: submit aync remote job

        -> `...aquila().run`
            :: submit job and wait until job finished
            and results returned

        -> `...aquila().__callable__`
            :: submit job and wait until job finished
            and results returned


    """
    return self.parse().quera.aquila()

cloud_mock

cloud_mock()

Specify QuEra's Remote Mock QPU

Return

QuEraHardwareRoutine

  • Possible Next:

    -> ...aquila().submit :: submit aync remote job

    -> ...aquila().run :: submit job and wait until job finished and results returned

    -> ...aquila().__callable__ :: submit job and wait until job finished and results returned

Source code in .venv/lib/python3.12/site-packages/bloqade/analog/builder/backend/quera.py
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
def cloud_mock(self):
    """
    Specify QuEra's Remote Mock QPU

    Return:
        QuEraHardwareRoutine

    - Possible Next:

        -> `...aquila().submit`
            :: submit aync remote job

        -> `...aquila().run`
            :: submit job and wait until job finished
            and results returned

        -> `...aquila().__callable__`
            :: submit job and wait until job finished
            and results returned



    """
    return self.parse().quera.cloud_mock()

custom

custom()

Specify custom backend

Return

CustomSubmissionRoutine

Source code in .venv/lib/python3.12/site-packages/bloqade/analog/builder/backend/quera.py
131
132
133
134
135
136
137
138
139
140
def custom(self):
    """
    Specify custom backend

    Return:
        CustomSubmissionRoutine

    """

    return self.parse().quera.custom()

device

device(config_file: Optional[str] = None, **api_config)

Specify QuEra's QPU device,

Parameters:

Name Type Description Default
config_file str

file that speficy the target hardware

None
Return

QuEraHardwareRoutine

  • Possible Next:

    -> ...device().submit :: submit aync remote job

    -> ...device().run :: submit job and wait until job finished and results returned

    -> ...device().__callable__ :: submit job and wait until job finished and results returned

Source code in .venv/lib/python3.12/site-packages/bloqade/analog/builder/backend/quera.py
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
def device(self, config_file: Optional[str] = None, **api_config):
    """
    Specify QuEra's QPU device,

    Args:
        config_file (str): file that speficy the target hardware

    Return:
        QuEraHardwareRoutine

    - Possible Next:

        -> `...device().submit`
            :: submit aync remote job

        -> `...device().run`
            :: submit job and wait until job finished
            and results returned

        -> `...device().__callable__`
            :: submit job and wait until job finished
            and results returned


    """
    return self.parse().quera.device(config_file, **api_config)

mock

mock(
    state_file: str = ".mock_state.txt",
    submission_error: bool = False,
)

Specify mock, testing locally.

Return

QuEraHardwareRoutine

  • Possible Next:

    -> ...aquila().submit :: submit aync remote job

    -> ...aquila().run :: submit job and wait until job finished and results returned

    -> ...aquila().__callable__ :: submit job and wait until job finished and results returned

Source code in .venv/lib/python3.12/site-packages/bloqade/analog/builder/backend/quera.py
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
def mock(self, state_file: str = ".mock_state.txt", submission_error: bool = False):
    """
    Specify mock, testing locally.

    Return:
        QuEraHardwareRoutine

    - Possible Next:

        -> `...aquila().submit`
            :: submit aync remote job

        -> `...aquila().run`
            :: submit job and wait until job finished
            and results returned

        -> `...aquila().__callable__`
            :: submit job and wait until job finished
            and results returned



    """
    return self.parse().quera.mock(
        state_file=state_file, submission_error=submission_error
    )

QuEraService

QuEraService(parent: Optional[Builder] = None)

Bases: Builder

Source code in .venv/lib/python3.12/site-packages/bloqade/analog/builder/base.py
10
11
12
13
14
def __init__(
    self,
    parent: Optional["Builder"] = None,
) -> None:
    self.__parent__ = parent

quera property

quera
  • Specify Quera backend
  • Possible Next:

    -> ...quera.aquila :: Aquila QPU

    -> ...quera.mock :: mock backend, meant for testings

    -> ...quera.device :: QuEra QPU, specifiy by config_file