Quantum computers are going to accelerate drug discovery, change the way we encrypt our information, and much more. If you haven’t heard of quantum computing yet, here’s a video that provides a nice introduction.
This article breaks down how we mathematically express qubits (quantum bits) and explains why each notation works.
Refresher on superposition: in classical computing, bits can only take on boolean values (0 or 1 and nothing in-between). But a qubit can be in a superposition of |0⟩ and |1⟩. (For now, let the symbols “|” and “ ⟩” just be indicators that a value is related to…
You probably have at most a century to live. So, what are you supposed to do with this time?
That is a question everybody stumbles upon. Some philosophers dedicate their lives to the study of it, but we have yet to figure out the answer.
One way for you to embrace our inability to understand the purpose of life is to live longer. The more time you spend alive, the more time you devote to the pursuit of a “successful” life.
If you are like me and do not yet know what a successful life looks like, then living longer…
A bit of Python code can be written so well that your boss and coworkers will marvel at its beauty. Keep reading to discover easy changes that will improve your code’s speed and style!
Treat this as a collection of useful concepts. Even you Python pros will find tips to apply to your code.
Let’s start simple. Say you wanted to swap the values that two variables store. In many languages (such as C), you would need to use a temporary variable, like this:
But in Python, this is all shortened to just one readable line: