Skip to content

Access Luna: Get Models and Jobs

The LunaSolve Object provides additional functionalities to retrieve your models and jobs.


Authentication with Luna

To submit solve jobs or access models, authentication is required. See the Get Started Guide for a step-by-step walkthrough.

from luna_quantum import LunaSolve

LunaSolve.authenticate("<YOUR_LUNA_API_KEY>")

Access Models

Retrieve a model by its ID:

from luna_quantum import Model

model = Model.load_luna(model_id="<MODEL_ID>")

Managing Models

Please refer to the Model Documentation for further details on managing Models.

Retrieve Jobs

Retrieve jobs corresponding to a model:

jobs = model.load_solve_jobs()

Managing SolveJobs

Please refer to the SolveJob Documentation for further details on managing SolveJobs.