Fix quantum setup