SemideterministicRounding#
- class SemideterministicRounding(*, atol=1e-08, seed=None)[fuente]#
Bases:
RoundingScheme
Semi-deterministic rounding scheme
This is referred to as «Pauli rounding» in https://arxiv.org/abs/2111.03167.
- Parámetros:
Methods
- round(rounding_context)[fuente]#
Perform semi-deterministic rounding
- Parámetros:
rounding_context (RoundingContext) – Rounding context containing information about the problem and solution.
- Devuelve:
Result containing the rounded solution.
- Muestra:
QiskitOptimizationError – If the expectation values are not available in the context.
- Tipo del valor devuelto: