Inspecting compiled circuits - Amazon Braket

Inspecting compiled circuits

When a circuit runs on a hardware device, it must be compiled in an acceptable format such as transpiling the circuit down to the native gates that are supported by the QPU. Inspecting the actual compiled output can be very useful for debugging purposes. You can view this circuit for both Rigetti and IQM devices using the code below.

task = AwsQuantumTask(arn=task_id, aws_session=session) # after task finished task_result = task.result() compiled_circuit = task_result.get_compiled_circuit()
Note

Today you cannot view your compiled circuit for IonQ devices.