question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Normalization in the entanglement calculation.

See original GitHub issue

I think it might be a good idea to describe the convention that was used in the von Neumann entropy calculation. The flag density is True by default in _ent_entropy (lattice.py). This causes a division of the von Neumann entropy by N_A or N_B.

Also the example at https://github.com/weinbe58/QuSpin/blob/master/examples/notebooks/BHM.ipynb additionally divides the entanglement entropy by L

Sent=basis.ent_entropy(V[:,0],sub_sys_A=subsystem)['Sent_A']/L

I (and probably some other people too) are used to different conventions so it would be helpful if the convention was explained in the doc string (a reference to a paper according to which the von Neumann entropy was implemented would be perfectly sufficient too).

I am overall really enjoying working with quspin. It’s a great software package!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mgbukovcommented, May 24, 2018

Hey Benedikt,

thanks a lot for pointing this out! Indeed, I noticed myself some time ago that the density optional argument is not listed, and I made the change in the branch floquet_update. When we merge it into dev_0.3.0 and master this will appear.

I missed the BHM jupyter notebook though. I will change this right away (also in the same branch, to be consistent). Good catch!

I guess by convention for the entanglement you mean the ordering of the basis vectors? Or can u give a bit more details?

@weinbe58 : Phil, the 'densityoptional argument is absent from thetensor_basisand thephoton_basis`. It’s also not present in the documentation, so this is consistent. The Q is whether we want to put it in?

0reactions
mgbukovcommented, May 28, 2018

This is fixed and the online doc has been updated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Simple algebraic explanation for normalizing states
The coefficient 1√23 is the normalization factor: if you have a 3-qubit state that is an equal superposition of 8 basis states, ...
Read more >
Chapter 4 Quantum Entanglement - Caltech Particle Theory
Hence, for 〈ψ|ϕ〉 = 0, we have E〈e|f〉E = 1, and therefore since the states are normalized, |e〉 = |f〉. This means that...
Read more >
Evolution equation for quantum entanglement | Nature Physics
In order to compute the entanglement of the normalized final state, has to be divided by p ′.
Read more >
Entanglement distillation - Wikipedia
Entanglement distillation (also called entanglement purification) is the transformation of N ... subject to the normalization condition ∑ x ∈ 0 , 1...
Read more >
Multiple Qubits and Entangled States - Qiskit
Calculate the single qubit unitary (U U ) created by the sequence of gates: U=XZH U = X Z H . Use Qiskit's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found