Skip to content

Commit

Permalink
docs: 📝 add basic usage instructions (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
kahojyun authored Jul 7, 2023
1 parent a39f86f commit 73b058c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 23 deletions.
50 changes: 28 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,39 @@

Waveform generator for superconducting circuits.

## Simple waveform generator
> **Note:** This package is still under development and the API may change.
A basic waveform generator without scheduling support.
> **Related projects:** [pulsegen-client](https://github.com/kahojyun/pulsegen-client)
* Place waveform at
## Usage

* shape
* width
* plateau
* position
* Shift phase
* Set LO
> **Note:** This package requires .NET 7 or higher. Install the latest .NET SDK from [here](https://dotnet.microsoft.com/download/dotnet/7.0).
* frequency
* phase
* position
First, clone the repository:

Channel options
```bash
git clone https://github.com/kahojyun/Qynit.PulseGen.git
```

* delay
* crosstalk
Then, build the project:

* complex amplitude
* delay?
* IQ mixer calibration
```bash
cd Qynit.PulseGen
dotnet build
```

* imbalance
* skew
* offset
* delay?
Finally, run the server:

```bash
dotnet run --project src/Qynit.PulseGen.Server
```

You can specify the url and port number to listen to:

```bash
dotnet run --project src/Qynit.PulseGen.Server --urls http://localhost:5200
```

## Development

Use Visual Studio or Visual Studio Code with the [C# extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp).
2 changes: 1 addition & 1 deletion src/Qynit.PulseGen.Server/PulseGenRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void Play(Play play)
{
var channelId = play.ChannelId;
var shapeId = play.ShapeId;
var pulseShape = _shapeTable[shapeId].GetPulseShape();
var pulseShape = (shapeId == -1) ? null : _shapeTable[shapeId].GetPulseShape();
var width = play.Width;
var plateau = play.Plateau;
var envelope = new Envelope(pulseShape, width, plateau);
Expand Down

0 comments on commit 73b058c

Please sign in to comment.