qbraid.transpiler.conversions.openqasm3.openqasm3_to_ionq
- openqasm3_to_ionq(qasm)[source]
Returns an IonQ JSON format representation the input OpenQASM program.
- Parameters:
qasm (str or openqasm3.ast.Program) – OpenQASM program to convert to IonQDict type.
- Returns:
IonQ JSON format equivalent to input OpenQASM string.
- Return type:
dict
- Raises:
ProgramConversionError – For failure to parse gate data from OpenQASM string.