Unitary Hack
Pre-release
Pre-release
DESCRIPTION
A major architecture redesign introducing QuantumBitGenerator
, QuantumPlatform
, and QuantumProtocol
. This allows to have a variety of possible quantum platforms (e.g. Qiskit, Cirq, Q#), as well as cross-compatible QRNG protocols along with a classical entropy verification suite that can be used to decorate any base quantum protocol.
Eventually these changes will deprecate the original QiskitBitGenerator
approach.
This pre-release was put together for unitaryHACK 2021.
CHANGELOG
Feat
- helpers: add reverse_endian
- Qrng: add get_random_uint
- Qrng: add get_random_decimal
- Qrng: add get_random_bytes
- Qrng: add random OCTAL, HEX, BASE32, and BASE64
Refactor
- platforms: update QiskitJob constructor
- platforms: extract QuantumBackend from QuantumJob
- Qrng: rename get_bit_string to get_random_bitstring
- Qrng: order methods alphabetically
- Qrng: order methods alphabetically
- Qrng: clean-up base32, base64, hex and octal
Fix
- Qrng: reimplement get_bit_string with deprecation warning
- Qrng: set default num_bits in get_random_bytes
- Qrng: replace decode for encode in b32 and b64
- Qrng: update output types in base32 and base64
- Qrng: update random complex precision to double
Perf
- Qrng: simplify imports