Extensions Class

Definition

public static class Extensions
type Extensions = class
Public Module Extensions
Inheritance
Extensions

Methods

Clone<TValue>(TValue[])

Clones the values of an array, assuming that each element is a value type.

CompareArray<TElement>(IEnumerable<TElement>, IEnumerable<TElement>, IComparer<TElement>)

Compares two equal-length sequences of integers by perform an element-wise comparison, starting from the first element.

IsInAscendingOrder<TElement>(IEnumerable<TElement>, IComparer<TElement>)
Map<E,T>(E, ValueTuple<E,Func<T>>[])
Map<E>(E, ValueTuple<E,Action>[])

Given a value of an enumeration type, and an action for each possible value of that enumeration type, performs the action corresponding to the given value.

Norm(IEnumerable<Double>, Double)

Computes the L_p norm of coefficients of all terms in a Hamiltonian.

Pow(Int32, Int32)

Computes x^y for an integer base x and exponent y

ToCustomString(IEnumerable<Int32>)

String representation of elements of an IEnumerable<T> of Int32.

ToDoubleCoeff(Double)

Construct Double that implements the ITermValue interface.

ToQSharpFormat(ProblemDescription, String, IndexConvention, QubitEncoding)

Converts an electronic structure problem description into a format consumable by Q# using default settings.

Applies to