qib.algorithms.vqe.ansatz.ansatz.Ansatz

class qib.algorithms.vqe.ansatz.ansatz.Ansatz[source]

Bases: AbstractOperator

Parent class for VQE ansatze.

Methods

as_matrix

Generate the (sparse) matrix representation of the operator.

fields

List of all fields appearing in the operator.

is_hermitian

Whether the operator is Hermitian.

is_unitary

Whether the operator is unitary.

abstract as_matrix()[source]

Generate the (sparse) matrix representation of the operator.

abstract fields()[source]

List of all fields appearing in the operator.

abstract is_hermitian()[source]

Whether the operator is Hermitian.

abstract is_unitary()[source]

Whether the operator is unitary.