qrao.SemideterministicRounding

class SemideterministicRounding(*, seed=None)[source]

Semideterministic rounding scheme

This is referred to as “Pauli rounding” in https://arxiv.org/abs/2111.03167v2.

Parameters:

seed (Optional[int]) – Seed for random number generator, which is used to resolve expectation values near zero to either +1 or -1.

__init__(*, seed=None)[source]
Parameters:

seed (Optional[int]) – Seed for random number generator, which is used to resolve expectation values near zero to either +1 or -1.

Methods

__init__(*[, seed])

type seed:

Optional[int]

round(ctx)

Perform semideterministic rounding