Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
A further simplification is possible
Browse files Browse the repository at this point in the history
  • Loading branch information
garrison committed May 18, 2022
1 parent 4bb2aa6 commit 1c465b3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,7 @@ def test_magic_rounding_on_hardware_backend(my_encoding, my_ansatz):
pytest.skip("No hardware backend available")
print(f"Encoding requires {my_encoding.num_qubits} qubits")
backend = least_busy(
provider.backends(
filters=lambda x: x.num_qubits >= my_encoding.num_qubits,
simulator=False,
)
provider.backends(min_num_qubits=my_encoding.num_qubits, simulator=False)
)
print(f"Using backend: {backend}")
relaxed_qi = QuantumInstance(backend=Aer.get_backend("aer_simulator"), shots=100)
Expand Down

0 comments on commit 1c465b3

Please sign in to comment.