qat.plugins.TransformObservable
- class qat.plugins.TransformObservable(name: str)
Plugin performing a transformation on the Observable, to cast a
qat.fermion.hamiltonians.FermionHamiltonian
or aqat.fermion.hamiltonians.ElectronicStructureHamiltonian
into aqat.fermion.hamiltonians.SpinHamiltonian
. The transformation is defined by a identifier (i.e. string)jordan-wigner: Jordan-Wigner transformation (cf.
transform_to_jw_basis()
)bravyi-kitaev: Bravyi-Kitaev transformation (cf.
transform_to_bk_basis()
)parity-basis: Parity basis transformation (cf.
transform_to_parity_basis()
)
- Parameters
name (str) – Transformation
- compile(batch, specs)
Compile method. Transform every job composing a batch
- Parameters
batch (
Batch
) – batch to compilespecs (
HardwareSpecs
) – ignored argument
- Returns
compiled batch
- Return type