Control Protocol for Dynamic Synthesis of Qubit and Qudit Gates Using Photonic Pulses and Magnetic Fields | Synapse