qiskit-textbook icon indicating copy to clipboard operation
qiskit-textbook copied to clipboard

[3.8] swapped scalar 1 by identity matrix in grover.ipynb

Open HannesGitH opened this issue 1 year ago • 2 comments

[3.8] use I instead of 1 for the identity matrix (since subtracting a scalar from a matrix is undefined)

Changes made

Swapped \\mathbb{1} with I in following eqaution:

- U = 2 |s> <s| - 1
+ U = 2 |s> <s| - I

Justification

2 |s> <s| is a matrix, and its mathematically not clear/defined how to substract a scalar (1) from this matrix, using I which is commonly used as the identity matrix is better

HannesGitH avatar Jul 29 '22 10:07 HannesGitH

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 29 '22 10:07 CLAassistant