Esempio n. 1
0
 public State(IEnumerable <Qubit> trucs) : this(FuncTools.Reduce1(LinearAlgebra.Kronecker, FuncTools.Map((Qubit a) => a.vector, trucs)))
 {
 }
Esempio n. 2
0
 public static Matrix <Complex> Mult(IEnumerable <Matrix <Complex> > t)
 {
     return(FuncTools.Reduce1(Mult, t));
 }
Esempio n. 3
0
 public Gate(string name, IEnumerable <Gate> gates) : this(name, FuncTools.Sum(FuncTools.Map((Gate a) => a.NbEntries, gates)), FuncTools.Reduce1(LinearAlgebra.Kronecker, FuncTools.Map((Gate a) => a.Matrix, gates)))
 {
 }
Esempio n. 4
0
 public static Matrix <Complex> Kronecker(IEnumerable <Matrix <Complex> > t)
 {
     return(FuncTools.Reduce1(Kronecker, t));
 }