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

Get density matrix #1843

Open
1 task done
ikkoham opened this issue Jun 20, 2024 · 0 comments
Open
1 task done

Get density matrix #1843

ikkoham opened this issue Jun 20, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@ikkoham
Copy link
Contributor

ikkoham commented Jun 20, 2024

Required prerequisites

  • Search the issue tracker to check if your feature has already been mentioned or rejected in other issues.

Describe the feature

Sometimes we want a density matrix. We can copy the state vector and compute it, but copying becomes a bottleneck, so it would be useful to have a method to compute the density matrix for the vectors on the GPU without copy.

The example of the syntax is

Function

cudaq.get_density_matrix(kernel, qargs=[0, 1, 2])

or
Method for State

state = cudaq.get_state(kernel)
state.get_density_matrix(qargs=[0, 1, 2])
@ikkoham ikkoham added the enhancement New feature or request label Jun 20, 2024
@bettinaheim bettinaheim added this to the release 0.8.0 milestone Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants