Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
doichanj committed Jul 5, 2024
1 parent 8f06cf9 commit 586abe8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/framework/operations.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,7 @@ inline std::ostream &operator<<(std::ostream &s, const Op &op) {
// Raise an exception if name string is empty
inline void check_empty_name(const Op &op) {
if (op.name.empty())
throw std::invalid_argument(
R"(Invalid instruction ("name" is empty).)");
throw std::invalid_argument(R"(Invalid instruction ("name" is empty).)");
}

// Raise an exception if qubits list is empty
Expand Down
3 changes: 2 additions & 1 deletion src/framework/pybind_json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ void std::to_json(json_t &js, const py::handle &obj) {
static py::object PyNoiseModel =
py::module::import("qiskit_aer.noise.noise_model").attr("NoiseModel");
static py::object PyCircuitHeader =
py::module::import("qiskit_aer.backends.backend_utils").attr("CircuitHeader");
py::module::import("qiskit_aer.backends.backend_utils")
.attr("CircuitHeader");
if (py::isinstance<py::float_>(obj)) {
js = obj.cast<nl::json::number_float_t>();
} else if (py::isinstance<py::bool_>(obj)) {
Expand Down

0 comments on commit 586abe8

Please sign in to comment.