From 1f26aa0f571a0e23400aff8754c8fd0ce54e9fd1 Mon Sep 17 00:00:00 2001 From: Ian Davis Date: Wed, 25 Sep 2024 16:15:37 -0700 Subject: [PATCH] Fixing test bug and backend profile --- .../azure/quantum/qiskit/backends/quantinuum.py | 2 +- azure-quantum/tests/unit/test_qiskit.py | 15 +++++---------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/azure-quantum/azure/quantum/qiskit/backends/quantinuum.py b/azure-quantum/azure/quantum/qiskit/backends/quantinuum.py index 0ac5b64d..0dcb0d4c 100644 --- a/azure-quantum/azure/quantum/qiskit/backends/quantinuum.py +++ b/azure-quantum/azure/quantum/qiskit/backends/quantinuum.py @@ -84,7 +84,7 @@ def _default_options(cls) -> Options: **{ cls._SHOTS_PARAM_NAME: _DEFAULT_SHOTS_COUNT }, - target_profile=TargetProfile.Base, + target_profile=TargetProfile.Adaptive_RI, ) def _azure_config(self) -> Dict[str, str]: diff --git a/azure-quantum/tests/unit/test_qiskit.py b/azure-quantum/tests/unit/test_qiskit.py index e0906bbd..45cf3194 100644 --- a/azure-quantum/tests/unit/test_qiskit.py +++ b/azure-quantum/tests/unit/test_qiskit.py @@ -199,15 +199,6 @@ def _5_qubit_superposition(self): circuit.measure([0], [0]) return circuit - def _endianness(self, pos=0): - self.assertLess(pos, 3) - qr = QuantumRegister(3) - cr = [ClassicalRegister(3) for _ in range(3)] - circuit = QuantumCircuit(qr, *cr, name=f"endian{pos}cr3") - circuit.x(pos) - circuit.measure(qr[pos], cr[pos][pos]) - return circuit - def _controlled_s(self): circuit = QuantumCircuit(3) circuit.t(0) @@ -1858,7 +1849,11 @@ def test_qiskit_endianness_submit_to_qci( backend = provider.get_backend("qci.simulator") shots = 100 - circuit = self._endianness(pos=endian_pos) + qr = QuantumRegister(3) + cr = [ClassicalRegister(3) for _ in range(3)] + circuit = QuantumCircuit(qr, *cr, name=f"endian0cr3") + circuit.x(0) + circuit.measure(qr[0], cr[0][0]) circuit.metadata = {"some": "data"} qiskit_job = backend.run(circuit, shots=shots)