Extract of the code used in Section IB for the optimization over t_p as described in the text.This code pertains to the publication https://arxiv.org/abs/2102.08336 (after peer review) and is part of a collection of additional supporting materials.
Battistel, F. (Creator), Varbanov, B. M. (Creator), Terhal, B. (Creator) (16 Jun 2021). optimization_code - Further supporting material for "A hardware-efficient leakage-reduction scheme for quantum error correction with superconducting transmon qubits". TU Delft - 4TU.ResearchData. 10.4121/14762052