Commit 53391ec2 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

adding updateConfiguration impl to aer accelerator


Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent e9ed2672
Pipeline #103675 passed with stage
in 69 minutes and 54 seconds
......@@ -24,7 +24,6 @@ class AerAccelerator(xacc.Accelerator):
if 'shots' in options:
self.shots = options['shots']
if 'backend' in options:
self.backend = options['backend']
import json
......@@ -40,11 +39,15 @@ class AerAccelerator(xacc.Accelerator):
ge = True if 'gate_error' in options and options['gate_error'] else False
self.noise_model = noise.device.basic_device_noise_model(properties, readout_error=ro_error, thermal_relaxation=rel, gate_error=ge)
def updateConfiguration(self, options):
self.initialize(options)
def getConnectivity(self):
if self.modeled_qpu == None:
return []
else:
return self.modeled_qpu.getConnectivity()
def name(self):
return 'aer'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment