Representation module
QdcEm.Representation — Plotting utilities and custom circuit
display styles for reproducing the paper figures.
Circuit display style
The module defines a custom Qiskit circuit style that colour-codes the two CM gate types, matching the convention used throughout the paper:
Gate label |
Display text |
Fill colour |
Text colour |
|---|---|---|---|
|
ÛT |
Purple ( |
Black |
|
ÛF |
Dark green ( |
White |
Pass the style dictionary to qc.draw('mpl', style=style) to match
the circuit diagrams in the paper:
from QdcEm.Representation import style
qc.draw('mpl', style=style)
plot_normalized_results
plot_normalized_results(results, plot_type, state, shots, kappa_T)
Plots the measured success probability of a remote CNOT gate versus fiber communication steps, reproducing Figure 5 of the paper. The x-axis begins with a monolithic reference point M (no inter-QPU noise) followed by steps 1–10. Four curves are shown — G-652-D, G-654-E, G-655-D, and a numerical (AerSimulator) reference.
Parameters
Name |
Type |
Description |
|---|---|---|
|
|
Keys are fiber-type labels ( |
|
|
Protocol label shown in the figure title, e.g. |
|
|
Initial state of the control qubit (0 or 1). |
|
|
Total measurement shots per data point; used for normalisation. |
|
|
Transducer coupling constant used in this experiment. |