import Vector from './Vector' ; import Operator from './Operator' ; /**
 * Class for measuring entanglement.
 */ export default class Entanglement { param v param coordIndices returns see https note static renyi2 ( v , coordIndices ) { const rhoAB = Operator . projectionOn ( v ) ; const rhoB = rhoAB . partialTrace ( coordIndices ) ; return - Math . log2 ( rhoB . mulOp ( rhoB ) . trace ( ) . re ) ; } }