Skip to content

Commit

Permalink
Spacing
Browse files Browse the repository at this point in the history
Signed-off-by: Vlad Gheorghiu <[email protected]>
  • Loading branch information
vsoftco committed Jan 9, 2025
1 parent 9b11f30 commit f85a3ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions include/qpp/qasm/qasm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ inline QCircuit read(std::istream& stream) {
new QCircuit(program->qubits(), program->bits()));
QCircuitBuilder builder(qc.get());
program->accept(builder);

return *qc;
}

Expand All @@ -791,6 +792,7 @@ inline QCircuit read_from_string(std::string qasm_string) {
new QCircuit(program->qubits(), program->bits()));
QCircuitBuilder builder(qc.get());
program->accept(builder);

return *qc;
}

Expand All @@ -807,6 +809,7 @@ inline QCircuit read_from_file(const std::string& fname) {
new QCircuit(program->qubits(), program->bits()));
QCircuitBuilder builder(qc.get());
program->accept(builder);

return *qc;
}

Expand Down
5 changes: 2 additions & 3 deletions pyqpp/include/pyqpp/qasm/qasm_bind.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ inline void init_qasm_qasm(py::module_& m) {

auto py_qasm = m.def_submodule("qasm");
py_qasm.def("read_from_file", &qpp::qasm::read_from_file,
"Get QCircuit representation of OpenQASM circuit");

"Get QCircuit representation of OpenQASM circuit from file");
py_qasm.def("read_from_string", &qpp::qasm::read_from_string,
"Get QCircuit representation of OpenQASM circuit");
"Get QCircuit representation of OpenQASM circuit from string");
}

#endif /* PYQPP_QASM_QASM_BIND_HPP_ */

0 comments on commit f85a3ad

Please sign in to comment.