quantum linear systems