View on GitHub
Open this notebook in GitHub to run it yourself
Examples
Example 1: Two Quantum Variables Minimum
This code example generates a quantum program that returns a minimum of two arguments. Both the left and right arguments are defined as quantum variables of size three.Output:
Example 2: Float and Quantum Variable Maximum
This code example returns a quantum program with a maximum of two arguments. Here, the left arg is a fixed-point number (3.5), and the right arg is a quantum variable of size three.Output: