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.
In certain places in
qadence
matrix - state multiplications are computed, e.g., when calculating observables. Mostly this uses theblock_to_tensor
function which by default setsuse_full_support = True
. However, we should by default haveuse_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.