Skip to main content

Overview

Adding to the available hardware platforms, IonQ Cloud is now accessible via Haiqu SDK to use IonQ’s trapped-ion QPUs (Quantum Processing Units). This integration allows users to leverage the computational power of IonQ’s quantum processors directly from the Haiqu SDK environment.

Key Features of the Integration

Direct Access to IonQ QPUs: Haiqu SDK users can execute quantum algorithms and experiments on IonQ’s quantum hardware without needing extensive configuration.Enhanced Workflow Management: Haiqu SDK offers tools to manage and optimize jobs submitted to IonQ’s QPUs, making the development and execution of quantum programs more efficient.

How to Access QPUs via IonQ Cloud

The integration is designed to be user-friendly, with a focus on simplifying the process of accessing quantum resources. Below is a step-by-step guide to using Haiqu SDK for this purpose.
1

Obtain an IonQ Cloud API key

Users must acquire an access token from IonQ. Should you want to run your workloads via IonQ Cloud, make sure to create an API key on IonQ Cloud here. This token serves as a secure credential to authorize access to the quantum processors.
2

Configure Haiqu SDK

To connect Haiqu SDK with IonQ Cloud QPUs, users need to input the obtained access token into the options as ionq_api_key. The token can be passed as a variable directly through the SDK’s API.
options = {
    "transpilation_options": {
        "optimization_level": 3,
    },
    "ionq_api_key": "<YOUR_TOKEN>",
}
3

Submit Quantum Jobs

Once authenticated, users can submit quantum circuits or algorithms to IonQ QPUs directly through Haiqu SDK. The SDK handles all backend operations, including job queuing, execution, and result retrieval.
Make sure to check which devices are available in your environment by calling haiqu.list_devices() first!
results_qpu = haiqu.run(
    haiqu_circuit,
    shots=1000,
    device_id="ionq_qpu.forte-enterprise-1",
    options=options,
)
4

Monitor and Retrieve Results

Haiqu SDK provides monitoring tools to track the status of quantum jobs in real-time. Once a job is completed, users can retrieve the results and analyze them within the SDK environment.
results_qpu.retrieve_status()

results_qpu.to_json()

Benefits of the Integration

Simplified Access: The integration eliminates complex setup procedures and allows users to focus on quantum application development.Scalability: Whether you are a researcher, developer, or enthusiast, Haiqu SDK enables scalable access to quantum resources tailored to your needs.Flexibility: The SDK supports a wide range of quantum programming libraries, making it a versatile tool for diverse projects.

Conclusion

Haiqu SDK’s integration with IonQ’s hardware marks an important step in making quantum computing more accessible and practical for a broad audience. Users can securely and efficiently access IonQ trapped ion quantum hardware, opening new possibilities in research, development, and innovation. Whether you’re an experienced quantum programmer or a curious beginner, Haiqu SDK provides the tools you need to explore the quantum frontier with ease.