crazy4pi314 / learn-qc-with-python-and-qsharp

Companion code for Learn Quantum Computing with Python and Q# Book by Dr. Sarah Kaiser and Dr. Cassandra Granade 💖
https://bit.ly/qsharp-book
MIT License
90 stars 51 forks source link

More Pythonic boolean comparisons #25

Open hristog opened 2 years ago

hristog commented 2 years ago

This PR proposes more Pythonic comparisons between boolean values, in the cases where we know and expect the corresponding data types to be booleans (e.g., 0 is False is False, but 0 == False is True).