Skip to content

Commit

Permalink
Removed 'microsoft.qc' from the default test provider/SKU list and re…
Browse files Browse the repository at this point in the history
…moved '.dev3' from the version number
  • Loading branch information
warren-jones committed Dec 27, 2024
1 parent 31cca14 commit 5556f1b
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 360 deletions.
2 changes: 1 addition & 1 deletion src/quantum/azext_quantum/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# This is the version reported by the CLI to the service when submitting requests.
# This should be in sync with the extension version in 'setup.py', unless we need to
# submit using a different version.
CLI_REPORTED_VERSION = "1.0.0b4.dev3"
CLI_REPORTED_VERSION = "1.0.0b4"


class QuantumCommandsLoader(AzCommandsLoader):
Expand Down
Binary file not shown.
55 changes: 0 additions & 55 deletions src/quantum/azext_quantum/tests/latest/input_data/entanglement.qir

This file was deleted.

266 changes: 0 additions & 266 deletions src/quantum/azext_quantum/tests/latest/input_data/qelib1.inc

This file was deleted.

This file was deleted.

21 changes: 0 additions & 21 deletions src/quantum/azext_quantum/tests/latest/input_data/teleport.qasm

This file was deleted.

23 changes: 13 additions & 10 deletions src/quantum/azext_quantum/tests/latest/test_quantum_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,27 +198,30 @@ def test_submit(self):
test_location = get_test_workspace_location()
test_resource_group = get_test_resource_group()
test_workspace_temp = get_test_workspace_random_name()
test_provider_sku_list = "qci/qci-freepreview,rigetti/azure-quantum-credits,ionq/aqt-pay-as-you-go-cred-new,microsoft-qc/learn-and-develop"
test_provider_sku_list = "qci/qci-freepreview,rigetti/azure-quantum-credits,ionq/aqt-pay-as-you-go-cred-new"
test_storage = get_test_workspace_storage()

self.cmd(f"az quantum workspace create -g {test_resource_group} -w {test_workspace_temp} -l {test_location} -a {test_storage} -r {test_provider_sku_list} --skip-autoadd")
self.cmd(f"az quantum workspace set -g {test_resource_group} -w {test_workspace_temp} -l {test_location}")

# Submit a job to Rigetti and look for SAS tokens in URIs in the output
results = self.cmd("az quantum job submit -t rigetti.sim.qvm --job-input-format rigetti.quil.v1 -t rigetti.sim.qvm --job-input-file src/quantum/azext_quantum/tests/latest/input_data/bell-state.quil --job-output-format rigetti.quil-results.v1 -o json").get_output_in_json()
self.assertIn("?se", results["containerUri"])
self.assertIn("&sp=racw&sv=", results["containerUri"])
self.assertIn("&sr=", results["containerUri"])
self.assertIn("?sv=", results["containerUri"])
self.assertIn("&st=", results["containerUri"])
self.assertIn("&se=", results["containerUri"])
self.assertIn("&sp=", results["containerUri"])
self.assertIn("&sig=", results["containerUri"])

self.assertIn("?se", results["inputDataUri"])
self.assertIn("&sp=racw&sv=", results["inputDataUri"])
self.assertIn("&sr=", results["inputDataUri"])
self.assertIn("?sv=", results["inputDataUri"])
self.assertIn("&st=", results["inputDataUri"])
self.assertIn("&se=", results["inputDataUri"])
self.assertIn("&sp=", results["inputDataUri"])
self.assertIn("&sig=", results["inputDataUri"])

self.assertIn("?se", results["outputDataUri"])
self.assertIn("&sp=racw&sv=", results["outputDataUri"])
self.assertIn("&sr=", results["outputDataUri"])
self.assertIn("?sv=", results["outputDataUri"])
self.assertIn("&st=", results["outputDataUri"])
self.assertIn("&se=", results["outputDataUri"])
self.assertIn("&sp=", results["outputDataUri"])
self.assertIn("&sig=", results["outputDataUri"])

# Run a Quil pass-through job on Rigetti
Expand Down
Loading

0 comments on commit 5556f1b

Please sign in to comment.