MarcSerraPeralta / surface-sim

Repository for simulations of surface code experiments
MIT License
0 stars 1 forks source link

Bad `surface_sim.layouts.plot` default arguments and bugs #50

Closed MarcSerraPeralta closed 1 month ago

MarcSerraPeralta commented 1 month ago

The default arguments for surface_sim.layouts.plot should be add_labels = True, add_patches = True, add_connections = True, and set_limits = True. Currently the plot only shows the dots corresponding to the qubits and the edges corresponding to the connections, but no labels.

The corresponding test should also be improved because now if I set add_labels = True, surface_sim.layouts.plot shows an error.

Another thing to improve is to use ax.set_aspect("equal") because if not the rectangular surface codes look stretched.

(this issue has been move from qec-util to surface-sim, see here)