google / qhbm-library

Quantum Hamiltonian-Based Models built on TensorFlow Quantum
https://qhbm-library.readthedocs.io/en/latest/
Apache License 2.0
40 stars 15 forks source link

Replace scipy random matrix test utilities with TensorFlow versions #221

Closed zaqqwerty closed 2 years ago

zaqqwerty commented 2 years ago

Resolves #219

Implements utilities for generating random Hermitian, unitary, and density matrices. Replaces the versions that relied on scipy, which were causing CI breaks.

Also removes some unused and untested functions from test_util.py (get_random_pauli_sum, generate_pure_random_density_operator, generate_mixed_random_density_operator_pair, and stable_classical_entropy)