Port to qipy

Change-Id: I46562bfd004241582c51a7485410c0b3cbb76ca3