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

[Feature] Computing partial trace outputs for statevectors and density matrices #367

Open
rajaiitp opened this issue Mar 11, 2024 · 6 comments
Labels
feature New feature or request

Comments

@rajaiitp
Copy link
Collaborator

It would nice to have basic density matrix related functionalities that are part of basic quantum information theory computations (partial trace, entropy, fidelity, purity..)

@RolandMacDoland
Copy link
Collaborator

@rajaiitp Could you please be more specific about the mathematical formulation of these ? Thanks.

@rajaiitp
Copy link
Collaborator Author

rajaiitp commented Mar 11, 2024

  • Partial trace of qubits marked by index i,j

$PT_{ij}(\rho_{ijkl}) = tr_{ij}(\rho_{ijkl}) =\sum_{i=(0,1),j=(0,1)}\rho_{ijkl}$

  • Von-Neuman Entropy of density matrix
    $Entropy = - tr(\rho log \rho)$
    trace over all qubit indices.

  • Fidelity between 2 density matrices $\rho, \sigma$:
    $Fidelity(\rho,\sigma) = (tr(\sqrt{\sqrt{\rho}\sigma \sqrt{\sigma}}))^2$

here sqrt is defined as diagonalize, sqrt and undiagonalize

  • n_th purity of a density matrix rho,
    $Purity(n,\rho) = tr(\rho^n)$

@RolandMacDoland RolandMacDoland added the feature New feature or request label Mar 13, 2024
@RolandMacDoland
Copy link
Collaborator

Hey @rajaiitp could you please make sure the formulae above are correct ? Thanks.

@RolandMacDoland
Copy link
Collaborator

In my opinion, this could go with the introduction of a Result type.

@rajaiitp
Copy link
Collaborator Author

@Roland-djee yes the formulae above are correct, just edited some brackets, didnt know we had support for latex on here. I dont know what a Result type is

@RolandMacDoland
Copy link
Collaborator

@Roland-djee yes the formulae above are correct, just edited some brackets, didnt know we had support for latex on here. I dont know what a Result type is

Yeah no worries, it is just an idea for us internally to handle what you suggested.

@RolandMacDoland RolandMacDoland changed the title Computing partial trace outputs for statevectors and density matrices [Feature] Computing partial trace outputs for statevectors and density matrices Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants