Path Properties

Pauli frequency tracker

PauliPropagation.PauliFreqTrackerType
PauliFreqTracker(coeff::Number, nsins::Int, ncos::Int, freq::Int)

Wrapper type for numerical coefficients in Pauli propagation that records the number of sin and cos factors applied via a PauliRotation gate, and the so-called frequency, which is their sum. It appears redundant but these three properties need to be tracked separately because of how merging affects them.

source

Abstract type

Base.floatMethod
float(path::PathProperties)

Returns an equivalent PathProperties object where float() is applied to the coeff field.

source
PauliPropagation.unwrapcoefficientsMethod
unwrapcoefficients(pstr::PauliString)

Unwrap the coefficient of a PauliString from a PathProperties type. Returns a PauliString with the coeff field of the PathProperties object.

source
PauliPropagation.unwrapcoefficientsMethod
unwrapcoefficients(psum::PauliSum)

Unwrap the coefficients of a PauliSum from a PathProperties type. Returns a PauliSum with coefficients being the coeff field of the PathProperties objects.

source
PauliPropagation.wrapcoefficientsMethod
wrapcoefficients(pstr::PauliString, PathPropertiesType<:PathProperties)

Wrap the coefficient of a PauliString into a custom PathProperties type. For anything that is not natively supported by the library, you can subtype PathProperties. A one-argument constructor of the custom PathProperties type from a coefficient must be defined.

source
PauliPropagation.wrapcoefficientsMethod
wrapcoefficients(psum::PauliSum, PathPropertiesType<:PathProperties)

Wrap the coefficients of a PauliSum into a custom PathProperties type. For anything that is not natively supported by the library, you can subtype PathProperties. A one-argument constructor of the custom PathProperties type from a coefficient must be defined.

source