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:

circuit (QPROGRAM) – A supported quantum circuit / program object

Returns:

A wrapped quantum circuit-like object

Return type:

QuantumProgram

Raises:

QbraidError – If the input circuit is not a supported quantum program.