Skip to content

Latest commit

 

History

History
65 lines (44 loc) · 1.67 KB

README.md

File metadata and controls

65 lines (44 loc) · 1.67 KB

Source code

Pre-reqs

  1. Install dependencies. If using codespaces you may simply run ./bootstrap.sh. Otherwise this should suffice:

.NET

aleph is built on .NET 6, mostly on F#. Once pre-requs are built, just build and test the solution file (src/aleph.sln).

cd src
dotnet build
dotnet test

Python

We provide Python bindings for aleph. Use pip to install the source version. Include pytest for tests

cd src/python
pip install -e . pytest
pytest

API server

The Python bindings require an API server to keep track of the quantum graph and evaluate it. Information about how to build and run can be found in the API server folder: ./api/README.md

Release Binaries

  1. Update package versions in:

    • .NET: Common.props
    • Python: python/setup.py Main should always have a beta version. To build a release version use a release branch and build from there.
  2. Build .NET packages:

    dotnet pack src/aleph.sln -c Release -o bin

    Packages will be in the bin folder. Upload all of them to NuGet (via the NuGet portal).

  3. Build and publish Python package:

    cd src/python
    pip install build twine
    python -m build
    twine upload dist/*

Other

Debug F# tests

  1. Set env variable: VSTEST_HOST_DEBUG="1"
  2. Start dotnet test: dotnet test --filter TestQPUClassic

    It starts and breaks. Print the process id to the console.

  3. Attach to process.