9 releases

0.2.1 Aug 9, 2022
0.2.0 Aug 9, 2022
0.0.7 Jul 28, 2022
0.0.6 Jun 16, 2022
0.0.2 Oct 19, 2021

#6 in #rigetti

Download history 733/week @ 2024-06-12 897/week @ 2024-06-19 667/week @ 2024-06-26 632/week @ 2024-07-03 854/week @ 2024-07-10 598/week @ 2024-07-17 1109/week @ 2024-07-24 1224/week @ 2024-07-31 1073/week @ 2024-08-07 923/week @ 2024-08-14 764/week @ 2024-08-21 896/week @ 2024-08-28 841/week @ 2024-09-04 1109/week @ 2024-09-11 570/week @ 2024-09-18 431/week @ 2024-09-25

3,102 downloads per month
Used in qcs

Apache-2.0

380KB
4K SLoC

Rust API client for openapi

Introduction

This is the documentation for the Rigetti QCS HTTP API.

You can find out more about Rigetti at https://rigetti.com, and also interact with QCS via the web at https://qcs.rigetti.com.

This API is documented in OpenAPI format and so is compatible with the dozens of language-specific client generators available here and elsewhere on the web.

Principles

This API follows REST design principles where appropriate, and otherwise an HTTP RPC paradigm. We adhere to the Google API Improvement Proposals where reasonable to provide a consistent, intuitive developer experience. HTTP response codes match their specifications, and error messages fit a common format.

Authentication

All access to the QCS API requires OAuth2 authentication provided by Okta. You can request access here. Once you have a user account, you can download your access token from QCS here.

That access token is valid for 24 hours after issuance. The value of access_token within the JSON file is the token used for authentication (don't use the entire JSON file).

Authenticate requests using the Authorization header and a Bearer prefix:

curl --header \"Authorization: Bearer eyJraW...Iow\"

Quantum Processor Access

Access to the quantum processors themselves is not yet provided directly by this HTTP API, but is instead performed over ZeroMQ/rpcq. Until that changes, we suggest using pyquil to build and execute quantum programs via the Legacy API.

Legacy API

Our legacy HTTP API remains accessible at https://forest-server.qcs.rigetti.com, and it shares a source of truth with this API's services. You can use either service with the same user account and means of authentication. We strongly recommend using the API documented here, as the legacy API is on the path to deprecation.

For more information, please visit https://rigetti.zendesk.com

Overview

This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.

  • API version: 2020-07-31
  • Package version: 2020-07-31
  • Build package: org.openapitools.codegen.languages.RustClientCodegen

Installation

Put the package under your project folder in a directory named openapi and add the following to Cargo.toml under [dependencies]:

openapi = { path = "./openapi" }

Documentation for API Endpoints

All URIs are relative to https://api.qcs.rigetti.com

Class Method HTTP request Description
AccountApi add_group_user POST /v1/groups:addUser Add user to a group
AccountApi get_group_balance GET /v1/groups/{groupName}/balance Get Group Balance
AccountApi get_group_billing_customer GET /v1/groups/{groupName}/billingCustomer
AccountApi get_group_upcoming_billing_invoice GET /v1/groups/{groupName}/billingInvoices:getUpcoming
AccountApi get_user_balance GET /v1/users/{userId}/balance Get User Balance
AccountApi get_user_billing_customer GET /v1/users/{userId}/billingCustomer
AccountApi get_user_upcoming_billing_invoice GET /v1/users/{userId}/billingInvoices:getUpcoming
AccountApi list_group_billing_invoice_lines GET /v1/groups/{groupName}/billingInvoices/{billingInvoiceId}/lines
AccountApi list_group_billing_invoices GET /v1/groups/{groupName}/billingInvoices
AccountApi list_group_upcoming_billing_invoice_lines GET /v1/groups/{groupName}/billingInvoices:listUpcomingLines
AccountApi list_group_users GET /v1/groups/{groupName}/users List users belonging to a group
AccountApi list_user_billing_invoice_lines GET /v1/users/{userId}/billingInvoices/{billingInvoiceId}/lines
AccountApi list_user_billing_invoices GET /v1/users/{userId}/billingInvoices
AccountApi list_user_groups GET /v1/users/{userId}/groups List QCS groups for the requested user
AccountApi list_user_upcoming_billing_invoice_lines GET /v1/users/{userId}/billingInvoices:listUpcomingLines
AccountApi remove_group_user POST /v1/groups:removeUser Remove user from a group.
AuthenticationApi auth_email_password_reset_token POST /v1/auth:emailPasswordResetToken Email Password Reset Token
AuthenticationApi auth_get_user GET /v1/auth:getUser Get User
AuthenticationApi auth_reset_password POST /v1/auth:resetPassword Reset Password
AuthenticationApi auth_reset_password_with_token POST /v1/auth:resetPasswordWithToken Reset Password With Token
ClientApplicationsApi check_client_application POST /v1/clientApplications:check Check Client Application
ClientApplicationsApi get_client_application GET /v1/clientApplications/{clientApplicationName} Get Client Application
ClientApplicationsApi list_client_applications GET /v1/clientApplications List Client Applications
DefaultApi get_health GET /
DefaultApi health_check GET /v1/ Health Check
EndpointsApi create_endpoint POST /v1/endpoints Create Endpoint
EndpointsApi delete_endpoint DELETE /v1/endpoints/{endpointId} Delete Endpoint
EndpointsApi get_default_endpoint GET /v1/quantumProcessors/{quantumProcessorId}/endpoints:getDefault Get Default Endpoint
EndpointsApi get_endpoint GET /v1/endpoints/{endpointId} Get Endpoint
EndpointsApi list_endpoints GET /v1/endpoints List Endpoints
EndpointsApi restart_endpoint POST /v1/endpoints/{endpointId}:restart Restart Endpoint
EngagementsApi create_engagement POST /v1/engagements Create Engagement
QuantumProcessorsApi get_instruction_set_architecture GET /v1/quantumProcessors/{quantumProcessorId}/instructionSetArchitecture Get Instruction Set Architecture
QuantumProcessorsApi get_quantum_processor GET /v1/quantumProcessors/{quantumProcessorId} Get Quantum Processor
QuantumProcessorsApi list_quantum_processors GET /v1/quantumProcessors List Quantum Processors
ReservationsApi create_reservation POST /v1/reservations Create Reservation
ReservationsApi delete_reservation DELETE /v1/reservations/{reservationId} Delete Reservation
ReservationsApi find_available_reservations GET /v1/reservations:findAvailable Find Available Reservations
ReservationsApi list_group_reservations GET /v1/groups/{groupName}/reservations List Group Reservations
ReservationsApi list_reservations GET /v1/reservations List Reservations
TranslationApi get_quilt_calibrations GET /v1/quantumProcessors/{quantumProcessorId}/quiltCalibrations Get Quilt Calibrations
TranslationApi translate_native_quil_to_encrypted_binary POST /v1/quantumProcessors/{quantumProcessorId}:translateNativeQuilToEncryptedBinary Translate Native Quil To Encrypted Binary

Documentation For Models

To get access to the crate's generated documentation, use:

cargo doc --open

Author

support@rigetti.com

Dependencies

~4–15MB
~219K SLoC