Quantum Program Constraints
When synthesizing a quantum program, you can pass a maximum width constraint to the generation; for example, requiring that no more than 20 qubits are used. Pass constraints as follows:- SDK
Optimization Parameter
When synthesizing a quantum program, to optimize the quantum program according to a parameter, set theoptimization_parameter field. The possible
parameters are the same parameters that can be constrained.
The following example shows how to remove the width constraint in the quantum program, setting it instead
as the optimization parameter.
- SDK