Convert str(array) back to numpy array

Posted on Sun 21 May 2017 in Physics

If we print a numpy array, which actually use str(), we will find it almost irreversible.

In [5]:
l=arange(16).reshape(4,4)
print('l is printed as:\n', l)

l is printed as:
[[ 0  1  2  3]
[ 4  5  6  7]
[ 8  9 10 11]
[12 13 14 …

Reduced density matrix and partial trace

Posted on Wed 03 May 2017 in Physics

The reduced matrix is defined as the partial trace of the density matrix. In linear algebra and functional analysis, the partial trace is a generalization of the trace. Whereas the trace is a scalar valued function on operators, the partial trace is an operator-valued function. The partial trace has applications in quantum information and decoherence which is relevant for quantum measurement and thereby to the decoherent approaches to interpretations of quantum mechanics, including consistent histories and the relative state interpretation.

One way quantum computer

Posted on Sat 18 February 2017 in Physics

The one-way or measurement based quantum computer (MBQC) is a method of quantum computing that first prepares an entangled resource state, usually a cluster state or graph state, then performs single qubit measurements on it. It is "one-way" because the resource state is destroyed by the measurements.

Cluster States

Posted on Wed 01 February 2017 in Physics

In quantum information and quantum computing, a cluster state is a type of highly entangled state of multiple qubits. Cluster states are generated in lattices of qubits with Ising type interactions. A cluster C is a connected subset of a d-dimensional lattice, and a cluster state is a pure state of the qubits located on C. Another way of thinking of cluster states is as a particular instance of graph states, where the underlying graph is a connected subset of a d-dimensional lattice. Cluster states are especially useful in the context of the one-way quantum computer.

Renyi entropy of the wormholes

Posted on Tue 17 January 2017 in Physics

In information theory, the Rényi entropy generalizes the Hartley entropy, the Shannon entropy, the collision entropy and the min entropy. Entropies quantify the diversity, uncertainty, or randomness of a system. The Rényi entropy is named after Alfréd Rényi.

Geometrical Optics in Continuum

Posted on Thu 05 January 2017 in Physics

Fermat’s Principle

Fermat’s Principle is

$$\delta s=\delta\int n\dd \ell=0$$

If we choose the path connecting two points to be

$$\bm r=\bm r(t),\quad t_0\leq t\leq t_1$$

We can write

From d’Alembert to Lagrange

Posted on Sat 01 October 2016 in Physics

Nowtonian

Assume $$\bm F$$ is active force and $$\bm R$$ is constraint force. Then for $$i$$th body we have Newton’s Second Law:

\bm F^\mathrm{tot}_i=\bm F_i+\bm R_i=m\bm …

Tn格点上逾渗的几何结构

Posted on Wed 01 June 2016 in Physics

《$T_n$格点上逾渗的几何结构》是我的本科毕业论文。