Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
xacc
Commits
53391ec2
Commit
53391ec2
authored
May 22, 2020
by
Mccaskey, Alex
Browse files
adding updateConfiguration impl to aer accelerator
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
e9ed2672
Pipeline
#103675
passed with stage
in 69 minutes and 54 seconds
Changes
1
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
python/plugins/aer/aer_accelerator.py
View file @
53391ec2
...
...
@@ -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'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment