Skip to content

Commit

Permalink
update back and pylint version (#137)
Browse files Browse the repository at this point in the history
# Description

Please summarise the changes.

# Related issues

Please mention any github issues addressed by this PR.

# Checklist

- [ ] I have run the tests on a device with GPUs.
- [ ] I have performed a self-review of my code.
- [ ] I have commented hard-to-understand parts of my code.
- [ ] I have made corresponding changes to the public API documentation.
- [ ] I have added tests that prove my fix is effective or that my
feature works.
- [ ] I have updated the changelog with any user-facing changes.
  • Loading branch information
cqc-melf authored Jul 9, 2024
1 parent 827e270 commit 116613a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Update pip
run: pip install --upgrade pip
- name: Install black and pylint
run: pip install black~=22.3 pylint~=3.0
run: pip install black pylint
- name: Check files are formatted with black
run: |
black --check .
Expand Down
3 changes: 1 addition & 2 deletions tests/test_general_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,7 @@ def test_sampler(circuit: Circuit, measure_all: bool) -> None:
# Obtain all compatible basis states (bitstring encoded as int)
non_measured = circuit.n_qubits - num_measured
compatible = [
(outcome << non_measured) + offset
for offset in range(2**non_measured)
(outcome << non_measured) + offset for offset in range(2**non_measured)
]
# The probability is the sum of that of all compatible basis states
prob = sum(abs(sv_pytket[v]) ** 2 for v in compatible)
Expand Down

0 comments on commit 116613a

Please sign in to comment.