Skip to main content

Overview

As part of its mission to provide an intuitive and versatile platform, Haiqu SDK now integrates seamlessly with IBM Quantum QPUs (Quantum Processing Units). This integration allows users to leverage the computational power of IBM’s state-of-the-art quantum processors directly from the Haiqu SDK environment.

Key Features of the Integration

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

How to Access IBM Quantum QPUs

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 IBM Token

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

Configure Haiqu SDK

To connect Haiqu SDK with IBM Quantum QPUs, users need to input the obtained access token into the options as ibm_quantum_token. The token can be passed as an variable directly through the SDK’s API. Alternatively, you can save your credentials once using save_ibm_credentials()and not specify them in the options for every execution.
options = {
    "transpilation_options": {
        "optimization_level": 3,
    },
    "ibm_quantum_token": "<YOUR_TOKEN>",
	"ibm_quantum_instance": "<YOUR_INSTANCE>",
}
3

Submit Quantum Jobs

Once authenticated, users can submit quantum circuits or algorithms to IBM QPUs directly through Haiqu SDK. The SDK handles all backend operations, including job queuing, execution, and result retrieval.
results_qpu = haiqu.run(
    haiqu_circuit,
    shots=1000,
    device_id="ibm_fez",
    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 IBM Quantum QPUs marks an important step in making quantum computing more accessible and practical for a broad audience. Users can securely and efficiently access IBM’s advanced 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.