PauliStringFromGenIdx function

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

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[])

Input

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.