QPanda3  0.1.0
Supported by OriginQ
Loading...
Searching...
No Matches
pyqpanda3.intermediate_compiler Namespace Reference

Functions

 convert_originir_file_to_qprog (*args, **kwargs)
 convert_originir_file_to_qprog(ir_filepath: str) -> QPanda::QProg
 
 convert_originir_string_to_qprog (*args, **kwargs)
 convert_originir_string_to_qprog(string: str) -> QPanda::QProg
 
 convert_qasm_file_to_qprog (*args, **kwargs)
 convert_qasm_file_to_qprog(qasm_filepath: str) -> QPanda::QProg
 
 convert_qasm_string_to_qprog (*args, **kwargs)
 convert_qasm_string_to_qprog(qasm_str: str) -> QPanda::QProg
 
str convert_qprog_to_originir (prog)
 convert_qprog_to_originir(prog: QPanda::QProg) -> str
 

Function Documentation

◆ convert_originir_file_to_qprog()

pyqpanda3.intermediate_compiler.convert_originir_file_to_qprog ( * args,
** kwargs )

convert_originir_file_to_qprog(ir_filepath: str) -> QPanda::QProg

This interface converts a file containing instruction set string in OriginIR format into the quantum program QProg.

Parameters
[in]ir_filepathFile path to be converted containing OriginIR instruction set string.
Returns
The Converted quantum program QProg.

◆ convert_originir_string_to_qprog()

pyqpanda3.intermediate_compiler.convert_originir_string_to_qprog ( * args,
** kwargs )

convert_originir_string_to_qprog(string: str) -> QPanda::QProg

This interface converts instruction set string in OriginIR format into the quantum program QProg.

Parameters
[in]ir_strOriginIR instruction set string to be converted.
Returns
The Converted quantum program QProg.

◆ convert_qasm_file_to_qprog()

pyqpanda3.intermediate_compiler.convert_qasm_file_to_qprog ( * args,
** kwargs )

convert_qasm_file_to_qprog(qasm_filepath: str) -> QPanda::QProg

This interface converts a file containing instruction set string in QASM format into the quantum program QProg.

Parameters
[in]qasm_filepathFile path to be converted containing QASM instruction set string.
Returns
The Converted quantum program QProg.

◆ convert_qasm_string_to_qprog()

pyqpanda3.intermediate_compiler.convert_qasm_string_to_qprog ( * args,
** kwargs )

convert_qasm_string_to_qprog(qasm_str: str) -> QPanda::QProg

This interface converts instruction set string in QASM format into the quantum program QProg.

Parameters
[in]qasm_strQASM instruction set string to be converted.
Returns
The Converted quantum program QProg.

◆ convert_qprog_to_originir()

str pyqpanda3.intermediate_compiler.convert_qprog_to_originir ( prog)

convert_qprog_to_originir(prog: QPanda::QProg) -> str

This interface converts the quantum program QProg to an instruction set string in OriginIR format.

Parameters
[in]progThe quantum program to be converted.
Returns
The Converted OriginIR instruction set string.