@@ -411,45 +411,6 @@ def test_qiskit_provider_init_without_workspace_raises_deprecation(self):
411
411
assert len (warns ) == 1
412
412
assert issubclass (warns [0 ].category , DeprecationWarning )
413
413
414
- @pytest .mark .ionq
415
- def test_plugins_estimate_cost_qiskit_ionq (self ):
416
- circuit = self ._3_qubit_ghz ()
417
- workspace = self .create_workspace ()
418
- provider = AzureQuantumProvider (workspace = workspace )
419
- self .assertIn ("azure-quantum-qiskit" , provider ._workspace .user_agent )
420
- backend = provider .get_backend ("ionq.simulator" )
421
- self .assertIsInstance (backend , IonQSimulatorQirBackend )
422
- cost = backend .estimate_cost (circuit , shots = 100e3 )
423
- self .assertEqual (cost .estimated_total , 0.0 )
424
-
425
- backend = provider .get_backend ("ionq.qpu.aria-1" )
426
- self .assertIsInstance (backend , IonQAriaQirBackend )
427
- cost = backend .estimate_cost (circuit , shots = 1024 )
428
- self .assertEqual (np .round (cost .estimated_total ), 98.0 )
429
-
430
- backend = provider .get_backend ("ionq.qpu.aria-1" )
431
- self .assertIsInstance (backend , IonQAriaQirBackend )
432
- cost = backend .estimate_cost (circuit , shots = 100e3 )
433
- self .assertEqual (np .round (cost .estimated_total ), 240.0 )
434
-
435
- @pytest .mark .ionq
436
- def test_plugins_estimate_cost_qiskit_ionq_passthrough (self ):
437
- circuit = self ._3_qubit_ghz ()
438
- workspace = self .create_workspace ()
439
- provider = AzureQuantumProvider (workspace = workspace )
440
- self .assertIn ("azure-quantum-qiskit" , provider ._workspace .user_agent )
441
- backend = provider .get_backend ("ionq.simulator" , input_data_format = "ionq.circuit.v1" , gateset = "qis" )
442
- cost = backend .estimate_cost (circuit , shots = 100e3 )
443
- self .assertEqual (cost .estimated_total , 0.0 )
444
-
445
- backend = provider .get_backend ("ionq.qpu.aria-1" , input_data_format = "ionq.circuit.v1" , gateset = "qis" )
446
- cost = backend .estimate_cost (circuit , shots = 1024 )
447
- self .assertEqual (np .round (cost .estimated_total ), 98.0 )
448
-
449
- backend = provider .get_backend ("ionq.qpu.aria-1" , input_data_format = "ionq.circuit.v1" , gateset = "qis" )
450
- cost = backend .estimate_cost (circuit , shots = 100e3 )
451
- self .assertEqual (np .round (cost .estimated_total ), 240.0 )
452
-
453
414
@pytest .mark .ionq
454
415
@pytest .mark .live_test
455
416
def test_plugins_submit_qiskit_to_ionq (self ):
@@ -1022,75 +983,6 @@ def test_plugins_retrieve_job(self):
1022
983
self .assertAlmostEqual (result .data ()["counts" ]["000" ], 50 , delta = 20 )
1023
984
self .assertAlmostEqual (result .data ()["counts" ]["111" ], 50 , delta = 20 )
1024
985
1025
- @pytest .mark .quantinuum
1026
- def test_plugins_estimate_cost_qiskit_quantinuum (self ):
1027
- circuit = self ._3_qubit_ghz ()
1028
- workspace = self .create_workspace ()
1029
- provider = AzureQuantumProvider (workspace = workspace )
1030
- self .assertIn ("azure-quantum-qiskit" , provider ._workspace .user_agent )
1031
-
1032
- backend = provider .get_backend ("quantinuum.sim.h1-1sc" )
1033
- self .assertIsInstance (backend , QuantinuumQirBackendBase )
1034
-
1035
- cost = backend .estimate_cost (circuit , shots = 100e3 )
1036
- self .assertEqual (cost .estimated_total , 0.0 )
1037
-
1038
- backend = provider .get_backend ("quantinuum.sim.h1-1e" )
1039
- self .assertIsInstance (backend , QuantinuumQirBackendBase )
1040
- cost = backend .estimate_cost (circuit , shots = 100e3 )
1041
- self .assertEqual (cost .estimated_total , 745.0 )
1042
-
1043
- backend = provider .get_backend ("quantinuum.qpu.h1-1" )
1044
- self .assertIsInstance (backend , QuantinuumQirBackendBase )
1045
- cost = backend .estimate_cost (circuit , shots = 100e3 )
1046
- self .assertEqual (cost .estimated_total , 745.0 )
1047
-
1048
- backend = provider .get_backend ("quantinuum.sim.h2-1sc" )
1049
- self .assertIsInstance (backend , QuantinuumQirBackendBase )
1050
- cost = backend .estimate_cost (circuit , shots = 100e3 )
1051
- self .assertEqual (cost .estimated_total , 0.0 )
1052
-
1053
- backend = provider .get_backend ("quantinuum.sim.h2-1e" )
1054
- self .assertIsInstance (backend , QuantinuumQirBackendBase )
1055
- cost = backend .estimate_cost (circuit , shots = 100e3 )
1056
- self .assertEqual (cost .estimated_total , 745.0 )
1057
-
1058
- backend = provider .get_backend ("quantinuum.qpu.h2-1" )
1059
- self .assertIsInstance (backend , QuantinuumQirBackendBase )
1060
- cost = backend .estimate_cost (circuit , shots = 100e3 )
1061
- self .assertEqual (cost .estimated_total , 745.0 )
1062
-
1063
- @pytest .mark .quantinuum
1064
- def test_plugins_estimate_cost_qiskit_quantinuum_passthrough (self ):
1065
- circuit = self ._3_qubit_ghz ()
1066
- workspace = self .create_workspace ()
1067
- provider = AzureQuantumProvider (workspace = workspace )
1068
- self .assertIn ("azure-quantum-qiskit" , provider ._workspace .user_agent )
1069
-
1070
- backend = provider .get_backend ("quantinuum.sim.h1-1sc" , input_data_format = "honeywell.openqasm.v1" )
1071
- cost = backend .estimate_cost (circuit , shots = 100e3 )
1072
- self .assertEqual (cost .estimated_total , 0.0 )
1073
-
1074
- backend = provider .get_backend ("quantinuum.sim.h1-1e" , input_data_format = "honeywell.openqasm.v1" )
1075
- cost = backend .estimate_cost (circuit , shots = 100e3 )
1076
- self .assertEqual (cost .estimated_total , 745.0 )
1077
-
1078
- backend = provider .get_backend ("quantinuum.qpu.h1-1" , input_data_format = "honeywell.openqasm.v1" )
1079
- cost = backend .estimate_cost (circuit , shots = 100e3 )
1080
- self .assertEqual (cost .estimated_total , 745.0 )
1081
-
1082
- backend = provider .get_backend ("quantinuum.sim.h2-1sc" , input_data_format = "honeywell.openqasm.v1" )
1083
- cost = backend .estimate_cost (circuit , shots = 100e3 )
1084
- self .assertEqual (cost .estimated_total , 0.0 )
1085
-
1086
- backend = provider .get_backend ("quantinuum.sim.h2-1e" , input_data_format = "honeywell.openqasm.v1" )
1087
- cost = backend .estimate_cost (circuit , shots = 100e3 )
1088
- self .assertEqual (cost .estimated_total , 745.0 )
1089
-
1090
- backend = provider .get_backend ("quantinuum.qpu.h2-1" , input_data_format = "honeywell.openqasm.v1" )
1091
- cost = backend .estimate_cost (circuit , shots = 100e3 )
1092
- self .assertEqual (cost .estimated_total , 745.0 )
1093
-
1094
986
@pytest .mark .live_test
1095
987
def test_plugins_submit_qiskit_noexistent_target (self ):
1096
988
workspace = self .create_workspace ()
0 commit comments