Skip to content
This repository has been archived by the owner on Sep 13, 2019. It is now read-only.

Commit

Permalink
Merge pull request #56 from danbev/addGate-api-doc-update
Browse files Browse the repository at this point in the history
Add Gate as option to addGate API in README
  • Loading branch information
jesusprubio authored Apr 25, 2019
2 parents 848603f + 26a8fdd commit db3b56f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### 🎉 Added

- `@qiskit/qiskit-sim`: Add t gate as an alias for the r4 gate
- `@qiskit/qiskit-sim`: Add Gate as option to addGate API in README

### ✏️ Changed

Expand Down
4 changes: 2 additions & 2 deletions packages/qiskit-sim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ Gates definition.

* `stateStr` (string) - Human friendly representation of the internal state.

### `circuit.addGate(name, column, wires)`
### `circuit.addGate(gate, column, wires)`

Add a gate to the circuit.

* `name` (string) - Name of the gate, from `gates` field.
* `gate` (Gate|string) - Gate instance or name of the gate, from `gates` field.
* `colum` (number) - Qubit to connect the gate.
* `wires` (number / [number]) - Gate connections. An array is used for multi-gates.

Expand Down

0 comments on commit db3b56f

Please sign in to comment.