[][src]Module kvantti::ket

Structs

Ket

A ket is a two-dimensional vector. It has two components, "first" and "second". These components, individually, are complex numbers. The value of each component can also be called an amplitude.

Constants

COMPLEX_ONE
COMPLEX_ZERO
KET_ONE

A ket with the value [0, 1]. Analogous to the classical bit 1. Has the symbol |1>.

KET_ZERO

A ket with the value [1, 0]. Analogous to the classical bit 0. Has the symbol |0>.

Traits

ValidQuantumState