@@ -56,6 +56,7 @@ class TestQuantumInspireProvider(unittest.TestCase):
56
56
'allowed_operations' : {
57
57
'measure' : ['measure_z' , 'measure_x' ],
58
58
'measure_all' : ['measure_all' ],
59
+ 'prep' : ['prep_z' ],
59
60
'parameterized_single_gates' : ['rx' , 'ry' , 'rz' ],
60
61
'single_gates' : ['x' , 'y' , 'z' , 'h' , 'i' , 't' , 'tdag' , 's' , 'sdag' ],
61
62
'dual_gates' : ['cz' , 'cr' , 'cnot' , 'swap' ],
@@ -127,8 +128,8 @@ def test_simulator_backend(self):
127
128
self .assertTrue (backend .configuration ().multiple_measurements )
128
129
self .assertFalse (backend .configuration ().parallel_computing )
129
130
self .assertEqual (backend .configuration ().basis_gates , ['x' , 'y' , 'z' , 'h' , 'rx' , 'ry' , 'rz' , 's' , 'sdg' ,
130
- 't' , 'tdg' , 'cx' , 'ccx' , 'p' , 'id' ,
131
- 'swap' , 'cz' , 'snapshot' , 'delay' , 'barrier' ])
131
+ 't' , 'tdg' , 'cx' , 'ccx' , 'p' , 'u' , ' id' ,
132
+ 'swap' , 'cz' , 'snapshot' , 'delay' , 'barrier' , 'reset' ])
132
133
133
134
def test_hardware_backend (self ):
134
135
with mock .patch ('quantuminspire.qiskit.quantum_inspire_provider.QuantumInspireAPI' ) as api :
@@ -177,9 +178,10 @@ def test_hardware_backend2(self):
177
178
self .assertFalse (backend .configuration ().conditional )
178
179
self .assertTrue (backend .configuration ().multiple_measurements )
179
180
self .assertFalse (backend .configuration ().parallel_computing )
180
- self .assertEqual (backend .configuration ().basis_gates , ['rx' , 'ry' , 'rz' , 'x' , 'y' , 'z' , 'h' , 'id' , 't' ,
181
+ self .assertEqual (backend .configuration ().basis_gates , ['reset' , 'rx' , 'ry' , 'rz' , 'x' , 'y' , 'z' ,
182
+ 'h' , 'id' , 't' ,
181
183
'tdg' , 's' , 'sdg' , 'cz' , 'cx' , 'swap' ,
182
- 'ccx' , 'barrier' , 'delay' , 'p' ])
184
+ 'ccx' , 'barrier' , 'delay' , 'u' , ' p' ])
183
185
184
186
def test_set_authentication_details (self ):
185
187
with mock .patch ('quantuminspire.qiskit.quantum_inspire_provider.QuantumInspireAPI' ) as api :
0 commit comments