Skip to content

Возможная ошибка в блоке "Квантовый бит" #564

Answered by Randl
SteveIris asked this question in Q&A
Discussion options

You must be logged in to vote

@SteveIris в том что бра не только транспонированный, но и комплексно-сопряженный.

proj_0 = eigenvectors[0].reshape((-1, 1)).conj() @ eigenvectors[0].reshape((1, -1))
proj_1 = eigenvectors[1].reshape((-1, 1)).conj() @ eigenvectors[1].reshape((1, -1))

Sanity check:

np.allclose(proj_0@proj_0,proj_0)
Out[11]: True

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@SteveIris
Comment options

@Randl
Comment options

@Randl
Comment options

Answer selected by SteveIris
@SteveIris
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants