entropicalabs / openqaoa

Multi-backend SDK for quantum optimisation
MIT License
116 stars 58 forks source link

Fix warning: invalid location #196

Closed raulconchello closed 1 year ago

raulconchello commented 1 year ago

Description

Before when running: device = create_device(location='test', name='vectorized') you got a warning like:

Invalid device location, Choose from: 'test'

it was returning the input.

I have modified that so that the warning that you get is:

Invalid device location, Choose from: ['ibmq', 'qcs', 'aws', 'local', 'azure']

codecov[bot] commented 1 year ago

Codecov Report

Merging #196 (87d32a1) into dev (67e7db5) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev     #196   +/-   ##
=======================================
  Coverage   88.76%   88.76%           
=======================================
  Files          32       32           
  Lines        5786     5786           
=======================================
  Hits         5136     5136           
  Misses        650      650           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more