learn-qc-with-python-and-qsharp icon indicating copy to clipboard operation
learn-qc-with-python-and-qsharp copied to clipboard

Ch02 and Ch03 measurement function

Open MBounouar opened this issue 3 years ago • 0 comments
trafficstars

https://github.com/crazy4pi314/learn-qc-with-python-and-qsharp/blob/7ffb0119e4f223ff9ab6e2dad0fa381923d2538e/ch02/simulator.py#L32

In Chapter 2 and 3, wouldn't it be didactically more correct to write the measurement function as a product ?

np.abs((KET_0.T @ self.state) ** 2)[0, 0] ?

MBounouar avatar May 25 '22 09:05 MBounouar