Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.

Test QuantumPhaseEstimation and associated decomp values #813

Test QuantumPhaseEstimation and associated decomp values

Test QuantumPhaseEstimation and associated decomp values #813

Workflow file for this run

name: Formatting check
on:
pull_request:
push:
branches:
- master
jobs:
black:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run:
python -m pip install --upgrade pip
pip install black click==8.0.4
- uses: actions/checkout@v2
- name: Run Black
run: black -l 100 pennylane_lightning_kokkos/ tests/ --check
format-cpp:
name: Format (C++)
runs-on: ubuntu-20.04
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- name: Install dependencies
run: sudo apt update && sudo apt -y install clang-format-12 python3
- name: Checkout code
uses: actions/checkout@v2
- name: Run formatter
run: ./bin/format --check --cfversion 12 ./pennylane_lightning_kokkos/src