Strain mediated by mechanical motion provides a powerful resource for controlling solid-state qubits in hybrid quantum systems. Leveraging more than one mechanical mode enables extended control capabilities that are inaccessible with a single mode. In this work, we experimentally demonstrate multimode strain engineering in hybrid systems comprising nitrogen-vacancy (NV) centers in diamond coupled to the mechanical motion of diamond oscillators via strain. By simultaneously driving flexural and torsional modes in T- and U-shaped oscillators and tuning their relative phases and amplitudes, we selectively enhance or suppress longitudinal strain coupling. Numerical simulations further suggest the possibility of independently controlling both longitudinal and transverse strains using membrane-like oscillators that support nearly degenerate mechanical modes. This approach paves the way for advanced mechanical control in hybrid quantum systems through multimode engineering.
Scanning magnetometry based on diamond nitrogen-vacancy (NV) centers enables quantitative magnetic imaging with nanoscale spatial resolution. However, large-area scanning is often limited by geometric distortion arising from the nonlinear hysteresis of piezoelectric positioners, leading to non-uniform pixel spacing and reduced image fidelity. Here, we present a software-based polynomial compensation method that corrects piezoelectric hysteresis without requiring additional hardware or closed-loop position control. By calibrating and analytically inverting the forward and backward hysteresis responses, compensated driving voltages are generated and directly applied during scanning. The method is experimentally validated using a current-carrying patterned gold device and magnetic domains in a hard-disk sample, demonstrating significantly improved geometric accuracy and the removal of scanning artifacts in both topographic and magnetic images. This simple and cost-effective approach provides an effective solution for improving large-area NV scanning magnetometry and other scanning probe imaging techniques based on open-loop piezoelectric positioners.