Ultra-high energy cosmic rays from Quark Novae