PauliStringFromGenIdx function


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

Please see for the API documentation for the Modern QDK.

Namespace: Microsoft.Quantum.Simulation

Package: Microsoft.Quantum.Standard

Extracts the Pauli string and its qubit indices of a Pauli term described by a GeneratorIndex.

function PauliStringFromGenIdx (generatorIndex : Microsoft.Quantum.Simulation.GeneratorIndex) : (Pauli[], Int[])


generatorIndex : GeneratorIndex

GeneratorIndex type that encodes a Pauli term.

Output : (Pauli[],Int[])

The Pauli string of the term described by a GeneratorIndex, and indices to the qubits it acts on.