Skip to main content

View on GitHub

Open this notebook in GitHub to run it yourself
The negation operation receives a quantum register representing some number xx and returns a quantum register containing x-x. Integer and fixed point numbers are both supported.

Example

The following example will show negation of a signed quantum variable.
Output: