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