Skip to content

Quera

QuEraDeviceRoute

QuEraDeviceRoute(parent=None)

Bases: Builder

Source code in src/bloqade/builder/base.py
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 src/bloqade/builder/backend/quera.py
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 src/bloqade/builder/backend/quera.py
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 src/bloqade/builder/backend/quera.py
def custom(self):
    """
    Specify custom backend

    Return:
        CustomSubmissionRoutine

    """

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

device

device(config_file=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 src/bloqade/builder/backend/quera.py
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='.mock_state.txt', submission_error=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 src/bloqade/builder/backend/quera.py
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=None)

Bases: Builder

Source code in src/bloqade/builder/base.py
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