qbraid.programs.load_program

load_program(program)[source]

Apply qbraid quantum program wrapper to a supported quantum program.

This function is used to create a qBraid QuantumProgram object, which can then be transpiled to any supported quantum circuit-building package. The input quantum circuit object must be an instance of a circuit object derived from a supported package.

Parameters:

program (TypeVar(QPROGRAM, bound= Any)) – A supported quantum circuit/program object.

Returns:

A wrapped quantum program object of the inferred subclass.

Return type:

QuantumProgram

Raises:

ProgramLoaderError – If the input program is not supported.