Raw Quantum Circuit JSON
Simple example
{
"id":"simple_circuit",
"instructions": [
{
"name":"h",
"qubits":[0]
},
{
"name":"cx",
"qubits":[0,1]
},
{
"name":"measure",
"qubits":[0],
"clbits":[0]
},
{
"name":"measure",
"qubits":[1],
"clbits":[1]
}
],
"config":
{
"shots": 1024,
"num_qubits":2,
"num_clbits":2,
"device":
{
"device_name":"CPU",
"target_devices":[]
}
},
"is_dynamic":false,
"sending_to":[]
}
Classical Communications example
{
"id":"sender_circuit",
"instructions": [
{
"name":"h",
"qubits":[0]
},
{
"name":"measure",
"qubits":[0],
"clbits":[0]
},
{
"name":"send",
"clbits":[0],
"circuits":["receiver_circuit"]
}
],
"config":
{
"shots": 1024,
"num_qubits":1,
"num_clbits":1,
"device":
{
"device_name":"CPU",
"target_devices":[]
}
},
"is_dynamic":true,
"sending_to":["receiver_circuit"]
}
{
"id":"receiver_circuit",
"instructions": [
{
"name":"recv",
"clbits":[0],
"circuits":["sender_circuit"]
}
],
"config":
{
"shots": 1024,
"num_qubits":1,
"num_clbits":1,
"device":
{
"device_name":"CPU",
"target_devices":[]
}
},
"is_dynamic":true,
"sending_to":[]
}
Quantum Communications example
{
"id":"qsender_circuit",
"instructions": [
{
"name":"h",
"qubits":[0]
},
{
"name":"qsend",
"qubits":[0],
"circuits":["qreceiver_circuit"]
},
{
"name":"measure",
"qubits":[0],
"clbits":[0]
}
],
"config":
{
"shots": 1024,
"num_qubits":1,
"num_clbits":1,
"device":
{
"device_name":"CPU",
"target_devices":[]
}
},
"is_dynamic":true,
"sending_to":[]
}
{
"id":"qreceiver_circuit",
"instructions": [
{
"name":"qrecv",
"qubits":[0],
"circuits":["qsender_circuit"]
},
{
"name":"measure",
"qubits":[0],
"clbits":[0]
}
],
"config":
{
"shots": 1024,
"num_qubits":1,
"num_clbits":1,
"device":
{
"device_name":"CPU",
"target_devices":[]
}
},
"is_dynamic":true,
"sending_to":[]
}