Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hilbert space kronecker product ignores dimension #142

Open
nwittler opened this issue Oct 14, 2021 · 0 comments
Open

Hilbert space kronecker product ignores dimension #142

nwittler opened this issue Oct 14, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@nwittler
Copy link
Collaborator

Describe the bug

Using

def hilbert_space_kron(op, indx, dims):
the dimension of the target subspace is ignored.

To Reproduce

hilbert_space_kron(PAULIS["Z"], 1, dims=[3, 3]) has dimension 6, because PAULIS["Z"] has dimension 2 and is kroneckerd with an identity of dim 3.

Expected behavior

The dimensions given in dims=[3, 3] should be respected to result in final dimension 9. The given operator should be extended to fit.

Environment

  • OS: Pop OS Linux
  • Python 3.8.8
  • c3-toolset Version 1.2.2
@nwittler nwittler added the bug Something isn't working label Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant