qbraid.transpiler.code.qasm_to_braket_code
- qasm_to_braket_code(qasm_file=None, qasm_str=None, output_file=None, print_circuit=False)[source]
Convert QASM string/file to Python file with circuit implemented using Amazon Braket.
- Parameters
qasm_file (
Optional
[str
]) – path to input .qasm fileqasm_str (
Optional
[str
]) – input raw QASM stringoutput_file (
Optional
[str
]) – path to output Python fileprint_circuit (
bool
) – If True, adds line to print Amazon Braket circuit
- Returns
None