Rigetti.qpu device access issue

Hi Team,

I have been running the following code in google colab and it gives me some access issues. Can you guys please guide me to rectify the problem?

aspen_m_2 = qml.device("rigetti.qpu",
execution_timeout=100, parallel=True,

The error is:

QCSHTTPStatusError: QCS API call GET https://api.qcs.rigetti.com/v1/quantumProcessors/Aspen-M-2/instructionSetArchitecture failed with status 403: {"code":"unauthorized","message":"User unauthorized","requestId":"f49a549c-7afc-4754-9861-68af9275c0dd"}

Can you guys please help me with this?

Also, I have checked qml.about() in my colab and the output is following.

Name: PennyLane
Version: 0.31.1
Summary: PennyLane is a Python quantum machine learning library by Xanadu Inc.
Home-page: https://github.com/PennyLaneAI/pennylane
License: Apache License 2.0
Location: /usr/local/lib/python3.10/dist-packages
Requires: appdirs, autograd, autoray, cachetools, networkx, numpy, pennylane-lightning, requests, rustworkx, scipy, semantic-version, toml, typing-extensions
Required-by: PennyLane-Lightning, PennyLane-Rigetti

Platform info:           Linux-5.15.109+-x86_64-with-glibc2.35
Python version:          3.10.12
Numpy version:           1.23.5
Scipy version:           1.10.1
Installed devices:


Hello @roysuman088 ! Welcome back to the forum!

Thank you for sharing your code!

Would you mind sending your code with the imports and a bit more context?

Another thing: if you’re trying to compile your quantum code and run on real QPUs, as your snippet code suggests, you may sign up for Rigetti’s Quantum Cloud Services (QCS). You can find more details about it on the following documentation pages:

I hope it helps! :slight_smile:


Hi @roysuman088 ,

Thank you for your question! Were you able to access the device before and suddenly started seeing this error? Or is this the first time you’re trying to access this device?