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

Commit

Permalink
Use new syntax for accessing num_qubits
Browse files Browse the repository at this point in the history
  • Loading branch information
garrison committed May 12, 2022
1 parent d86b859 commit 4bb2aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def test_magic_rounding_on_hardware_backend(my_encoding, my_ansatz):
print(f"Encoding requires {my_encoding.num_qubits} qubits")
backend = least_busy(
provider.backends(
filters=lambda x: x.configuration().n_qubits >= my_encoding.num_qubits,
filters=lambda x: x.num_qubits >= my_encoding.num_qubits,
simulator=False,
)
)
Expand Down

0 comments on commit 4bb2aa6

Please sign in to comment.