AngouriMath

Navigation

← Back to list of members

Ket​(System.​Int32[])

 Method (no overloads)

Summary

The basis ket over the given qubits, each 0 or 1: Ket(0, 1) is |01>.

Example

var bell = (MathS.Quantum.Ket(0, 0) + MathS.Quantum.Ket(1, 1)) / MathS.Sqrt(2);
Console.WriteLine(bell.Simplify());

























Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1953 pages online