Skip to content

Start adding coverage for density_matrix_kronecker_product function#7858

Closed
joesho112358 wants to merge 2 commits intoquantumlib:mainfrom
joesho112358:density_matrix_kronecker_product_test
Closed

Start adding coverage for density_matrix_kronecker_product function#7858
joesho112358 wants to merge 2 commits intoquantumlib:mainfrom
joesho112358:density_matrix_kronecker_product_test

Conversation

@joesho112358
Copy link
Copy Markdown
Contributor

This PR is to boost test coverage on the density_matrix_kronecker_product function

@github-actions github-actions bot added the size: S 10< lines changed <50 label Jan 27, 2026
Comment on lines +675 to +677
calculated_result_shape = tuple(
map(lambda x, y: (x / 2 + y / 2) * 2, matrix_1_array.shape, matrix_2_array.shape)
)
Copy link
Copy Markdown
Contributor Author

@joesho112358 joesho112358 Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @vtomole, i saw you were assigned to this PR automatically and wanted to call out that this is a draft because i am getting:

>       assert matrix_result.shape == calculated_result_shape
E       assert (2, 4, 2, 4) == (6.0, 6.0)

from the assertion that follows. Not sure where my math is failing, but guessing i am not fully understanding the function's docstring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: S 10< lines changed <50

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant