Skip to content

Commit

Permalink
fix(spec): include missing <= comparison operator
Browse files Browse the repository at this point in the history
Closes #11

Also, update packages.
  • Loading branch information
qartik committed Nov 2, 2023
1 parent 79804e3 commit 96c2b25
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ repos:
hooks:
- id: blackdoc
additional_dependencies:
- black==23.10.0
- black==23.10.1

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.2
rev: v0.1.3
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
5 changes: 3 additions & 2 deletions phir_spec_qasm.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ In PECOS implements true comparisons to evaluate to 1 and false ones to evaluate
#### Table I - Cop Assignment, arithmetic, comparison, & bitwise operations

| name | # args | sub-type | description |
|--------|--------|------------|------------------------|
| ------ | ------ | ---------- | ---------------------- |
| `"="` | 2 | Assignment | Assign |
| `"+"` | 2 | Arithmetic | Addition |
| `"-"` | 1 / 2 | Arithmetic | Negation / Subtraction |
Expand All @@ -239,6 +239,7 @@ In PECOS implements true comparisons to evaluate to 1 and false ones to evaluate
| `">"` | 2 | Comparison | Greater than |
| `"<"` | 2 | Comparison | Less than |
| `">="` | 2 | Comparison | Greater than or equal |
| `"<="` | 2 | Comparison | Less than or equal |
| `"&"` | 2 | Bitwise | AND |
| `"\|"` | 2 | Bitwise | OR |
| `"^"` | 2 | Bitwise | XOR |
Expand Down Expand Up @@ -390,7 +391,7 @@ For a Z basis measurement on multiple qubits:
### Table II - Quantum operations

| name | alt. names | # angles | # qubits | matrix | description |
|--------------|-------------------|----------|----------|--------|--------------------------|
| ------------ | ----------------- | -------- | -------- | ------ | ------------------------ |
| `"Init"` | | 0 | 1 | ... | Initialize qubit to \|0> |
| `"Measure"` | | 0 | 1 | ... | Measure qubit in Z basis |
| `"I"` | | 0 | 1 | ... | Identity |
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ build==1.0.3
mypy==1.6.1
pre-commit==3.5.0
pydantic==2.4.2
pydata_sphinx_theme==0.14.2
pydata_sphinx_theme==0.14.3
pytest==7.4.3
rich==13.6.0
ruff==0.1.2
ruff==0.1.3
setuptools-scm==8.0.4
sphinx==7.2.6
wheel==0.41.2
wheel==0.41.3

0 comments on commit 96c2b25

Please sign in to comment.