PreBlock¶
- class guppyft.std.state_factory.PreBlock[source]¶
Logical block that went through state preparation, but may not have succeeded.
The measurement outcomes specifying if it succeeded have not been read. Hence, the runtime is not blocked by measurements, allowing multiple state preparation to occur in parallel.
- Parameters:
BLOCK_SIZE – Number of physical qubits in the logical block.
N_FLAGS – Size of the results array
- logical_block¶
The candidate logical block
- Type:
LogicalBlock[N]
- force_check() Option[LogicalBlock[BLOCK_SIZE]][source]¶
If preparation was successful, return the block, otherwise return nothing.
Calling this forces the measurement of the flags to take place (if they had not already).