qbraid.programs.QuantumProgram

class QuantumProgram(program)[source]

Abstract class for qbraid program wrapper objects.

__init__(program)[source]

Methods

__init__(program)

get_spec(program)

Return the program spec.

transform(device)

Transform program to according to device target profile.

Attributes

experiment_type

Returns the ExperimentType corresponding to the sub-module of the program.

num_qubits

Total count of qubits needed by a quantum device to execute this program.

program

Return the quantum program.