Feature/op qr

This branch should fix a failure in `test_opQR`. Could you please verify it's what you intended? Thanks!