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.
serialize()Return the program in a format suitable for submission to the qBraid API.
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_typeReturns the ExperimentType corresponding to the sub-module of the program.
num_qubitsNumber of qubits needed by a quantum device to execute this program.
programReturn the quantum program.