qadence icon indicating copy to clipboard operation
qadence copied to clipboard

[Refactoring] Centralize matrix - state multiplication with proper qubit-support

Open jpmoutinho opened this issue 1 year ago • 0 comments

In certain places in qadence matrix - state multiplications are computed, e.g., when calculating observables. Mostly this uses the block_to_tensor function which by default sets use_full_support = True. However, we should by default have use_full_support = False in this function so that we only initialize the smallest matrices needed depending on the qubit support, and make sure that all matrix - state multiplications take that into account by multiplying only the small matrix into the correct qubit support.

jpmoutinho avatar Sep 27 '23 14:09 jpmoutinho