common.title

Docs
Quantum Circuit
TYTAN CLOUD

QUANTUM GAMING


Overview
Contact
Event
Project
Research

Terms of service (Web service)

Terms of service (Quantum and ML Cloud service)

Privacy policy


Sign in
Sign up
common.title

Preparing to throw calculations from the blueqat cloud to Rigetti's 80-qubit machine

Yuichiro Minato

2022/02/17 02:53

Please start by updating blueqat cloud.

!pip install -U blueqat-cloud

In this way, if you are using a jupyternotebook, you can choose to reboot the Kernel, update the system, and you are all set.

1,Load the API.

After logging in to blueqat.com, get your API key from the API settings in the user information on the top right. Initially, you will be given 100 credits for free. If you would like to purchase it, you can do so from the following link.

https://buy.stripe.com/eVabJNgWDdhFgVi6oo

If you have not registered yet, you need to do so first.

from bqcloud import register_api

api = register_api("API key here")

After registration, you can use

from bqcloud import load_api

api = load_api()

2, Throwing a task

It's easy. Describe the quantum circuit, specify the device, and throw the task.

from blueqat import Circuit
from bqcloud import Device

task = api.execute(Circuit().h[0].cx[0, 1], Device.AspenM1, 10)

That's it. Once the process is complete, you can print

print(task.status())

Status.QUEUED

ステータスが確認できます。

# Wait 10 sec. If complete, result is returned, otherwise, None is returned.
result = task.wait(timeout=10)
if result:
print(result.shots())
else:
print("timeout")

It will take some time to get the calculation results because the machine is busy and it is only running from 24:00-28:00 from Japan.

It will take some time to get the results, but we will wait and retrieve the calculations.

You can also get a list of tasks that have been submitted in the past.

https://github.com/Blueqat/bqcloud

Please check it out here.

It will cost you 2 credits. That's all.

© 2025, blueqat Inc. All rights reserved