qiskit.providers.ibmq.random.CQCExtractor.run¶
-
CQCExtractor.
run
(ext1_input_num_bits, ext1_output_num_bits, ext1_raw_bytes, ext1_wsr_bytes, ext2_seed_num_bits, ext2_wsr_multiplier, ext2_wsr_generator=None)[source]¶ Process input data synchronously.
- Parameters
ext1_input_num_bits (
int
) – Number of input bits, for extractor 1.ext1_output_num_bits (
int
) – Number of output bits, for extractor 1.ext1_raw_bytes (
bytes
) – Initial random numbers, in bytes, for extractor 1.ext1_wsr_bytes (
bytes
) – Initial WSRs, in bytes, for extractor 1.ext2_seed_num_bits (
int
) – Number of bits in the seed, for extractor 2.ext2_wsr_multiplier (
int
) – WSR multiplier, for extractor 2. The number of bits used by extractor 2 is ext2_seed_num_bits*ext2_wsr_multiplier.ext2_wsr_generator (
Optional
[Callable
]) – WSR generator used for extractor 2. It must take the number of bits as the input and a list of random bits (0s and 1s) as the output. IfNone
, :func:generate_wsr
is used.
- Return type
List
[int
]- Returns
An instance of
CQCExtractorJob
which can be used to retrieve the results later.