Skip to content

Commit

Permalink
[chore] clang-format all the things. (#21)
Browse files Browse the repository at this point in the history
Signed-off-by: boschmitt <[email protected]>
  • Loading branch information
boschmitt authored Dec 4, 2024
1 parent 1abb7df commit f0e6919
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ BasedOnStyle: LLVM
AlwaysBreakTemplateDeclarations: Yes
IncludeCategories:
- Regex: '^<'
Priority: 4
- Regex: '^"(llvm|llvm-c|clang|clang-c|mlir|mlir-c)/'
Priority: 3
- Regex: '^"(qoda|\.\.)/'
- Regex: '^"(cudaq|\.\.)/'
Priority: 2
- Regex: '.*'
Priority: 1
2 changes: 1 addition & 1 deletion libs/solvers/include/cudaq/solvers/observe_gradient.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

#pragma once

#include "cudaq/algorithms/observe.h"
#include "optimizer.h"
#include "cudaq/algorithms/observe.h"

using namespace cudaq;
using namespace cudaqx;
Expand Down
4 changes: 2 additions & 2 deletions libs/solvers/lib/adapt/adapt_simulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
#include "common/Logger.h"
#include "cudaq.h"

#include "cudaq/solvers/adapt/adapt_simulator.h"
#include "cudaq/solvers/vqe.h"
#include "device/adapt.h"
#include "device/prepare_state.h"
#include "cudaq/solvers/adapt/adapt_simulator.h"
#include "cudaq/solvers/vqe.h"

#include <iostream>
#include <nlohmann/json.hpp>
Expand Down
4 changes: 2 additions & 2 deletions libs/solvers/lib/operators/molecule/drivers/pyscf_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
#include "nlohmann/json.hpp"

#include "cuda-qx/core/tensor.h"
#include "cudaq/solvers/operators/molecule/fermion_compiler.h"
#include "cudaq/solvers/operators/molecule/molecule_package_driver.h"
#include "library_utils.h"
#include "process.h"
#include "cudaq/solvers/operators/molecule/fermion_compiler.h"
#include "cudaq/solvers/operators/molecule/molecule_package_driver.h"

#include "common/Logger.h"
#include "common/RestClient.h"
Expand Down
2 changes: 1 addition & 1 deletion libs/solvers/unittests/test_adapt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#include <gtest/gtest.h>

#include "cudaq.h"
#include "cudaq/solvers/adapt.h"
#include "nvqpp/test_kernels.h"
#include "cudaq/solvers/adapt.h"

std::vector<double> h2_data{
3, 1, 1, 3, 0.0454063, 0, 2, 0, 0, 0, 0.17028, 0,
Expand Down
2 changes: 1 addition & 1 deletion libs/solvers/unittests/test_qaoa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#include <gtest/gtest.h>

#include "cudaq.h"
#include "nvqpp/test_kernels.h"
#include "cudaq/solvers/operators.h"
#include "cudaq/solvers/qaoa.h"
#include "nvqpp/test_kernels.h"

using namespace cudaq::spin;

Expand Down

0 comments on commit f0e6919

Please sign in to comment.