Skip to content

Commit

Permalink
Fixing test bug and backend profile
Browse files Browse the repository at this point in the history
  • Loading branch information
idavis committed Sep 25, 2024
1 parent 4f0f1b0 commit 1f26aa0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion azure-quantum/azure/quantum/qiskit/backends/quantinuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down
15 changes: 5 additions & 10 deletions azure-quantum/tests/unit/test_qiskit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1f26aa0

Please sign in to comment.