qat.plugins.TransformObservable

class qat.plugins.TransformObservable(name: str)

Plugin performing a transformation on the Observable, to cast a qat.fermion.hamiltonians.FermionHamiltonian or a qat.fermion.hamiltonians.ElectronicStructureHamiltonian into a qat.fermion.hamiltonians.SpinHamiltonian. The transformation is defined by a identifier (i.e. string)

Parameters

name (str) – Transformation

compile(batch, specs)

Compile method. Transform every job composing a batch

Parameters
Returns

compiled batch

Return type

Batch