qbraid.programs.annealing.AnnealingProgram
- class AnnealingProgram(program)[source]
Abstract class for annealing problems.
- __init__(program)
Methods
__init__
(program)get_spec
(program)Return the program spec.
to_json
()Serialize the annealing problem to a JSON string.
to_problem
()Return a Problem data class representing this annealing problem.
transform
(device)Transform program according to device target profile.
Attributes
experiment_type
Returns the ExperimentType corresponding to the sub-module of the program.
num_qubits
Number of qubits needed by a quantum device to execute this program.
program
Return the quantum program.