LegacyBaseOperator

class LegacyBaseOperator(basis=None, z2_symmetries=None, name=None)[source]

Operators relevant for quantum applications.

Constructor.

Attributes

LegacyBaseOperator.basis

returns basis

LegacyBaseOperator.name

returns name

LegacyBaseOperator.num_qubits

Returns number of qubits for operator

LegacyBaseOperator.z2_symmetries

returns z2 symmetries

Methods

LegacyBaseOperator.__mul__(other)

Overload *

LegacyBaseOperator.chop(threshold[, copy])

LegacyBaseOperator.construct_evaluation_circuit(…)

Build circuits to compute the expectation w.r.t the wavefunction.

LegacyBaseOperator.evaluate_with_result(…)

Consume the result from the quantum computer to build the expectation, will be only used along with the construct_evaluation_circuit() method.

LegacyBaseOperator.evolve(state_in, …)

Time evolution, exp^(-jt H).

LegacyBaseOperator.is_empty()

Check Operator is empty or not

LegacyBaseOperator.print_details()

print details

LegacyBaseOperator.to_opflow()

Convert to new Operator format.