QSystemRandomExtension¶
- class tket.extensions.QSystemRandomExtension[source]¶
Bases:
TketExtensionQSystem’s random operations.
- __init__()¶
- property context: ExtType¶
Linear RNG context type.
- property delete_RNGContext: ExtOp¶
Discard the given RNG context.
- property new_RNGContext: ExtOp¶
Seed the RNG and return a new RNG context (call once).
- property random_advance: ExtOp¶
Advance the RNG state by the given delta.
- property random_float: ExtOp¶
Generate a random float in [0, 1).
- property random_int: ExtOp¶
Generate a random 32-bit unsigned integer.
- property random_int_bounded: ExtOp¶
Generate a random 32-bit unsigned integer less than bound.
- property version: Version¶
The version of the extension