qbraid.circuit_wrapper
- circuit_wrapper(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.cirq_circuit = cirq.Circuit() q0, q1, q2 = [cirq.LineQubit(i) for i in range(3)] ...
Please refer to the documentation of the individual qbraid circuit wrapper objects to see any additional arguments that might be supported.
- 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.