@@ -26,16 +26,6 @@ def loads(string: str, include_path: Iterable[Union[str, os.PathLike]] = (".",))
26
26
27
27
:param string: The OpenQASM 2 program in a string.
28
28
:type string: str
29
- :param include_path: An iterable of directories to use when searching for include files. These
30
- are tried in order, from index 0 onwards, and the first match is used. The import
31
- `qelib1.inc` is treated as a system include, and will always be found regardless of the
32
- value of this argument.
33
-
34
- By default, this contains only the current working directory.
35
- :type include_path: Iterable[Union[str, os.PathLike]]
36
-
37
- :raises QASM2ParseError: If the OpenQASM 2 program is invalid, or otherwise cannot be converted
38
- to Qiskit format.
39
29
40
30
:return: A circuit object representing the same OpenQASM 2 program.
41
31
:rtype: ~qiskit.circuit.QuantumCircuit
@@ -56,22 +46,11 @@ def load(
56
46
:param filename: A filename for a file that contains an OpenQASM 2 program.
57
47
:type filename: str
58
48
59
- :param include_path: An iterable of directories to use when searching for include files. These
60
- are tried in order, from index 0 onwards, and the first match is used. The import
61
- `qelib1.inc` is treated as a system include, and will always be found regardless of the
62
- value of this argument.
63
-
64
- By default, this contains only the current working directory.
65
- :type include_path: Iterable[Union[str, os.PathLike]]
66
-
67
49
:param include_file_directory: Whether to add the directory of the input file to the
68
50
`include_path`, and if so, whether to `append` it to search last, or `prepend` it to search
69
51
first. Pass `None` to suppress adding this directory entirely.
70
52
:type include_file_directory: ``None``, ``"append"`` or ``"prepend"``.
71
53
72
- :raises QASM2ParseError: If the OpenQASM 2 program is invalid, or otherwise cannot be converted
73
- to Qiskit format.
74
-
75
54
:return: A circuit object representing the same OpenQASM 2 program.
76
55
:rtype: ~qiskit.circuit.QuantumCircuit
77
56
"""
0 commit comments