SemideterministicRounding#
- class SemideterministicRounding(*, atol=1e-08, seed=None)[source]#
Bases:
RoundingScheme
Semi-deterministic rounding scheme
This is referred to as "Pauli rounding" in https://arxiv.org/abs/2111.03167.
- প্যারামিটার:
Methods
- round(rounding_context)[source]#
Perform semi-deterministic rounding
- প্যারামিটার:
rounding_context (RoundingContext) -- Rounding context containing information about the problem and solution.
- রিটার্নস:
Result containing the rounded solution.
- রেইজেস:
QiskitOptimizationError -- If the expectation values are not available in the context.
- রিটার্ন টাইপ: