Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to non-beta QDK #167

Merged
merged 2 commits into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/target-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,31 @@
run: |
sudo apt-get update -y
sudo apt-get install -y
sudo apt-get install -y --no-install-recommends curl cmake pkg-config findutils wget

Check warning on line 29 in .github/workflows/target-testing.yml

View workflow job for this annotation

GitHub Actions / Check spelling, linting and links

word (cmake)

Check warning on line 29 in .github/workflows/target-testing.yml

View workflow job for this annotation

GitHub Actions / Check spelling, linting and links

word (findutils)
sudo apt-get remove -y clang-13 llvm-13 clang-format-13 clang-tidy-13 clang-12 llvm-12 clang-format-12 clang-tidy-12
sudo apt install -y --no-install-recommends clang-14 llvm-14 clang-format-14 clang-tidy-14
sudo apt-get install -y nodejs npm
sudo apt install -y python3 python3-pip
sudo ln -s /usr/lib/llvm-14/bin/opt /usr/bin/opt
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 0
dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.24.201332
dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.25.218240
git submodule update --init --recursive
pip install -r requirements.txt
npm install -g [email protected]
env:
DEBIAN_FRONTEND: noninteractive

Check warning on line 41 in .github/workflows/target-testing.yml

View workflow job for this annotation

GitHub Actions / Check spelling, linting and links

word (noninteractive)
PYTHONUNBUFFERED: 1

Check warning on line 42 in .github/workflows/target-testing.yml

View workflow job for this annotation

GitHub Actions / Check spelling, linting and links

word (PYTHONUNBUFFERED)
PYTHON_BIN_PATH: /usr/bin/python3
CC: clang-14
CXX: clang++-14

- name: "Running target tests"
run: |
mkdir -p Debug

Check warning on line 49 in .github/workflows/target-testing.yml

View workflow job for this annotation

GitHub Actions / Check spelling, linting and links

word (mkdir)
pushd Debug

Check warning on line 50 in .github/workflows/target-testing.yml

View workflow job for this annotation

GitHub Actions / Check spelling, linting and links

word (pushd)
cmake ..

Check warning on line 51 in .github/workflows/target-testing.yml

View workflow job for this annotation

GitHub Actions / Check spelling, linting and links

word (cmake)
make qat
popd

Check warning on line 53 in .github/workflows/target-testing.yml

View workflow job for this annotation

GitHub Actions / Check spelling, linting and links

word (popd)

export QAT_BINARY=${PWD}/Debug/qir/qat/Apps/qat
pip install pytest
Expand Down
4 changes: 2 additions & 2 deletions qir/qsharp-target-tests/test_target_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def validate_circuit(name, profile, filename, args=[], output_file=None):
return ret


VERSION = os.environ.get("QSHARP_VERSION", "0.24.213020")
CHANNEL = os.environ.get("QSHARP_CHANNEL", "alpha")
VERSION = os.environ.get("QSHARP_VERSION", "0.25.218240")
CHANNEL = os.environ.get("QSHARP_CHANNEL", "")


@pytest.mark.parametrize("test_name", target1_tests)
Expand Down
2 changes: 1 addition & 1 deletion qir/qsharp/TargetPackages/QSharpVersion/Example.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.24.213020-alpha">
<Project Sdk="Microsoft.Quantum.Sdk/0.25.218240">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<IncludeProviderPackages>False</IncludeProviderPackages>
<!--ExecutionTarget>qci.qpu</ExecutionTarget-->
<ExecutionTarget>rigetti.qpu</ExecutionTarget>

Check warning on line 8 in qir/qsharp/TargetPackages/QSharpVersion/Example.csproj

View workflow job for this annotation

GitHub Actions / Check spelling, linting and links

Unknown word (rigetti)

Check warning on line 8 in qir/qsharp/TargetPackages/QSharpVersion/Example.csproj

View workflow job for this annotation

GitHub Actions / Check spelling, linting and links

word (rigetti)
<!--TargetCapability>AdaptiveExecution</TargetCapability-->
<QirGeneration>true</QirGeneration>
</PropertyGroup>
Expand Down
Loading