diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 69577a9..e9db571 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] diff --git a/phir_spec_qasm.md b/phir_spec_qasm.md index 2bb2331..77a99c3 100644 --- a/phir_spec_qasm.md +++ b/phir_spec_qasm.md @@ -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 | @@ -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 | @@ -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 | diff --git a/requirements.txt b/requirements.txt index 017b287..922fdfb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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