This is the source code for data generation and plotting accompanying the work "Noisy Qudit vs Multiple Qubits: Conditions on Gate Efficiency for Enhanced Fidelity" (2024) by D.Jankovic, J-G. Hartmann, P-A. Hervieux, M. Ruben.
This jupyter IPython notebook contains a section per figure or pair of figures. Each section imports and/or generates and saves the data that are then plotted. The dat/ folder contains the pulses generated as described in the Methods section of the paper. "qudit.py" is a custom library for easy interfacing of qudit systems with qutip.