View on GitHub
Open this notebook in GitHub to run it yourself
QNum variables.
- Optimizing over depth and constraining the maximal width to 9 qubits.
- Optimizing over depth and constraining the maximal width to 12 qubits.
Output:
Output:
Mathematical Background
The given mathematical expression: is solved by the automatic arithmetic operation management, optimizing over depth and constraining the maximal width to 9 and 12 qubits, which outputs the value for z. Theparsed_counts result:
- Optimizing over depth and constraining the maximal width to 9 qubits:
[{'z': 1.0}: 2048] - Optimizing over depth and constraining the maximal width to 12 qubits:
[{'z': 1.0}: 2048]
Allocated values: Expression Calculation: Therefore: As z is assigned the value True :