Compiler for X8_01 machine

I used the default decompiler for my program which decomposes the circuit into R and BS gates, while using the Xunitary compiler decomposes it into R and MZ gates. What compiler should I use for my program that shows exactly which gates are being implemented on the X8 machine physically? I am using the following code:


Alternatively I tried following the instructions in comments of Xunitary file.

The compiler may be used on its own:
>>> prog.compile(compiler=“Xunitary”)
Alternatively, it can be combined with an X series device specification to include additional
information, such as allowed parameter ranges.
>>> eng = sf.RemoteEngine(“X8”)
>>> spec = eng.device_spec
>>> prog.compile(device=spec, compiler=“Xunitary”)

But it gives me an error:
spec = eng.device_spec
AttributeError: ‘RemoteEngine’ object has no attribute ‘device_spec’

Alternatively, where could I get more information on the gates and allowed parameter ranges for X8 machine? Thank you.

Hi @Aditya_Ranjan,

Thank you very much for your question.

Our tutorial on executing programs on X8 devices can help answer some of your questions.

The error you’re getting seems to be in how you’re using your code.

The following should work
prog2 = prog.compile(device=eng.device, compiler="Xunitary")

Does this work for you?

Hi @CatalinaAlbornoz ,

Yes, it works. Thank you so much for the reply.

That’s great to hear @Aditya_Ranjan !