GeneratorIndex user defined type

Warning

This documentation refers to the Classic QDK, which has been replaced by the Modern QDK.

Please see https://aka.ms/qdk.api for the API documentation for the Modern QDK.

Namespace: Microsoft.Quantum.Simulation

Package: Microsoft.Quantum.Standard

Represents a single primitive term in the set of all dynamical generators, e.g. Hermitian operators, for which there exists a map from that generator to time-evolution by that generator, through EvolutionSet.

The first element (Int[], Double[]) is indexes that single term -- For instance, the Pauli string XXY with coefficient 0.5 would be indexed by ([1,1,2], [0.5]). Alternatively, Hamiltonians parameterized by a continuous variable, such as X cos φ + Y sin φ, might for instance be represented by ([], [φ]). The second element indexes the subsystem on which the generator acts on.


newtype GeneratorIndex = ((Int[], Double[]), Int[]);

Example

Using PauliEvolutionSet function, the operator $\pi X_2 X_5 Y_9$ is represented as:

let index = GeneratorIndex(([1, 1, 2], [PI()]), [2, 5, 9]);

Remarks

Warning

The interpretation of an GeneratorIndex is not defined except with reference to a particular set of generators.

See Also