View on GitHub
Open this notebook in GitHub to run it yourself
Bitwise Invert
The bitwise inversion operation receives a quantum register representing some number , and inverts its binary representation, namely, replaces s by s and vice versa.Example
Output: