Skip to content

Commit

Permalink
Merge branch 'main' into pytree_qml_counts_issue_arjun_bhamra
Browse files Browse the repository at this point in the history
  • Loading branch information
abhamra authored Oct 30, 2024
2 parents 440aa84 + 018ce9c commit 3064287
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-pl-compat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: PennyLaneAI/pennylane-lightning
ref: v0.38.0_rc
ref: v0.39.0_rc
path: lightning_build
fetch-depth: 0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static std::vector<Value> computePartialDerivative(PatternRewriter &rewriter, Lo
Value selectorBuffer, func::FuncOp shiftedFn,
std::vector<Value> callArgs)
{
constexpr double shift = PI / 2;
constexpr double shift = llvm::numbers::pi / 2;
ShapedType shiftVectorType = RankedTensorType::get({numShifts}, rewriter.getF64Type());
Value selectorVector = rewriter.create<bufferization::ToTensorOp>(loc, selectorBuffer);

Expand Down
2 changes: 0 additions & 2 deletions mlir/lib/Gradient/Transforms/GradMethods/ParameterShift.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

#include "Gradient/IR/GradientOps.h"

constexpr double PI = 3.14159265358979323846;

using namespace mlir;

namespace catalyst {
Expand Down

0 comments on commit 3064287

Please sign in to comment.