VarFormBased

class VarFormBased(var_form, params)[source]

The variational form based initial state.

This can been useful, say for example, if you have been doing experiments using a VariationalForm and have parameters for a state of interest of that form. Using this class it can then be turned into an initial state for use elsewhere.

As an example this notebook shows where the variational form’s state, from a VQE run, is then used as an initial state for IQPE by using this class.

Parameters
Raises

ValueError – Invalid input

Methods

VarFormBased.construct_circuit([mode, register])

Construct the statevector of desired initial state.