KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > physics > quantum > Projector


1 package JSci.physics.quantum;
2
3 /**
4 * The Projector class provides an object for encapsulating projection operators.
5 * @version 1.5
6 * @author Mark Hale
7 */

8 public class Projector extends Operator {
9         /**
10         * Constructs a projector from a ket vector.
11         * @param ket a ket vector
12         */

13         public Projector(KetVector ket) {
14                 super(ket.multiply(ket.toBraVector()).getRepresentation());
15         }
16 }
17
18
Popular Tags