d-1, generates a d-dimensional column vector (as a numpy matrix) in which the jth entry contains a one.
ket(). For example, the two-qubit state
ket(d, [j1, j2, ... , jn])creates the n-fold tensor product
dimAis the dimension of system
dimBis the dimension of system
A. In general,
partial_trace(R,sys,dim)traces over the systems in the list
dimis a list of the dimensions of all of the subsystems on which the operator
pis the fidelity to the maximally entangled state.