View on GitHub
Open this notebook in GitHub to run it yourself
Negation
The negation operation receives a quantum register representing some number and returns a quantum register containing . Integer and fixed point numbers are both supported.Example
The following example will show negation of a signed quantum variable.Output: