Closed teng10 closed 1 year ago
ping @hongyehu in case you haven't seen this.
ping @hongyehu in case you haven't seen this.
Hi Nate! I have seen this PR, and reviewing it. Many thanks!
New implementation of vectorized_batch_expectation, which enables parallel expectation value evaluation for single states. Future thinking: parallelization of states
This is an implementation of vectorzied fuction to compute expectation values
torchclifford.utils.stabilizer_expect()
for multiple stabilizer states (see UnitaryFund issue here) using vmap PyTorch. Currently, the computation is not yet vmapped as the following block raises an errorThis is because of a potential issue in PyTorch: https://github.com/pytorch/pytorch/issues/103329