Example #1
0
 public State(IEnumerable <Qubit> trucs) : this(FuncTools.Reduce1(LinearAlgebra.Kronecker, FuncTools.Map((Qubit a) => a.vector, trucs)))
 {
 }
Example #2
0
 public static Matrix <Complex> Mult(IEnumerable <Matrix <Complex> > t)
 {
     return(FuncTools.Reduce1(Mult, t));
 }
Example #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)))
 {
 }
Example #4
0
 public static Matrix <Complex> Kronecker(IEnumerable <Matrix <Complex> > t)
 {
     return(FuncTools.Reduce1(Kronecker, t));
 }