Skip to content

Commit

Permalink
new version of mathjs, and added comments about concurrence and von n…
Browse files Browse the repository at this point in the history
…eumann entropy
  • Loading branch information
MJMcGuffin authored Jul 10, 2024
1 parent 1531c39 commit 6e77c81
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Or go to the <a href="https://github.com/MJMcGuffin/muqcs">github repository</a> page.
</p>

<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/12.3.2/math.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/13.0.2/math.js"></script>

<script>

Expand Down Expand Up @@ -1402,6 +1402,8 @@
// https://docs.quantum.ibm.com/api/qiskit/0.24/qiskit.quantum_info.concurrence
// https://github.com/Qiskit/qiskit/blob/stable/0.16/qiskit/quantum_info/states/measures.py
// (lines 208-213 at the end of the concurrence() routine)
// More discussion is at
// https://physics.stackexchange.com/questions/46443/what-is-the-motivation-for-the-definition-of-concurrence-in-quantum-information
static computePairwiseQubitConcurrences(
n, // number of qubits in the circuit
densityMatrix // a matrix of size (2**n)x(2**n)
Expand Down Expand Up @@ -1475,6 +1477,9 @@
// (In general, when considering n qubits, the von Neumann entropy computed from their 2^n x 2^n reduced density matrix
// is in the range [0,n])
//
// See
// https://quantumcomputing.stackexchange.com/questions/28708/how-is-the-von-neumann-entropy-of-a-state-defined-from-its-eigendecomposition
//
static computePairwiseQubitVonNeumannEntropy(
n, // number of qubits in the circuit
densityMatrix // a matrix of size (2**n)x(2**n)
Expand Down

0 comments on commit 6e77c81

Please sign in to comment.