RoundingContext#

class RoundingContext(encoding, expectation_values, circuit=None)[fuente]#

Bases: object

Information that is provided for rounding

Attributes

circuit: QuantumCircuit | None = None#

Circuit corresponding to the encoding and expectation values.

encoding: QuantumRandomAccessEncoding#

Encoding containing the problem information.

expectation_values: list[complex] | None#

Expectation values for the relaxed Hamiltonian.

Methods