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

docs: 📝 add basic usage instructions #30

Merged
merged 1 commit into from
Jul 7, 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
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