Access to X8 device denied or forbidden?

When trying to run a job on X8 device, I get:

HTTPError: 403 Client Error: Forbidden for url: https://platform.xanadu.ai:443/jobs/fca831fb-b427-4151-8960-1d187d4a8af3

Hi @_risto,

Can you please confirm the following information?

  1. Have you installed the xanadu-cloud-client (xcc)?
  2. What version of xcc do you have installed?
  3. Do you have a Xanadu Cloud account?
  4. Have you generated an API Key on Xanadu Cloud?
  5. What do you get from running the following 2 lines of code?
import xcc 
xcc.Settings(REFRESH_TOKEN="Xanadu Cloud API key goes here").save()

Let me know if you have any questions!

1 Like

Yes, I have followed these steps. I don’t get anything when I run those two lines.

This is the line that causes error:

# Define the device
dev = qml.device("strawberryfields.remote", backend="X8", shots=1000)

Hi @_risto,

I see that you’re using PennyLane. I would recommend using Strawberry Fields directly if possible unless you need something that is PennyLane-specific. It’s important to note that the “strawberryfields.remote” device requires using the PennyLane-StrawberryFields plugin, which is only supported up to version 0.29 of PennyLane.

In short, I would recommend using Strawberry Fields directly if you want to use X8, or use version 0.29 of PennyLane with the PennyLane-StrawberryFields plugin if you want to want to keep using PennyLane.

Please let me know if you have any questions about this or if you’re still having issues.