Skip to main content

View on GitHub

Open this notebook in GitHub to run it yourself
The bitwise inversion operation receives a quantum register representing some number xx, and inverts its binary representation, namely, replaces 11s by 00s and vice versa.

Example

Output: