Skip to content

Commit

Permalink
Prevent Qiskit 1.0 upgrade (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcjaskula-aws authored Feb 6, 2024
1 parent 5c1cce0 commit c6938fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
certifi>=2021.5.30
qiskit-aer>=0.10.2
qiskit-terra>=0.19.2
qiskit>=0.34.2, <1.0
amazon-braket-sdk>=1.56.0

setuptools>=40.1.0
Expand Down
6 changes: 3 additions & 3 deletions tests/providers/test_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def test_sample_result_type(self):

qiskit_circuit = QuantumCircuit(2, 2)
qiskit_circuit.h(0)
qiskit_circuit.cnot(0, 1)
qiskit_circuit.cx(0, 1)
qiskit_circuit.measure(0, 0)
braket_circuit = to_braket(qiskit_circuit)

Expand All @@ -372,7 +372,7 @@ def test_sample_result_type_different_indices(self):

qiskit_circuit = QuantumCircuit(2, 2)
qiskit_circuit.h(0)
qiskit_circuit.cnot(0, 1)
qiskit_circuit.cx(0, 1)
qiskit_circuit.measure(0, 1)
braket_circuit = to_braket(qiskit_circuit)

Expand All @@ -396,7 +396,7 @@ def test_multiple_registers(self):
creg = ClassicalRegister(2, "creg")
qiskit_circuit = QuantumCircuit(qreg_a, qreg_b, creg)
qiskit_circuit.h(qreg_a[0])
qiskit_circuit.cnot(qreg_a[0], qreg_b[0])
qiskit_circuit.cx(qreg_a[0], qreg_b[0])
qiskit_circuit.x(qreg_a[1])
qiskit_circuit.measure(qreg_a[0], creg[1])
qiskit_circuit.measure(qreg_b[0], creg[0])
Expand Down
2 changes: 1 addition & 1 deletion tests/providers/test_braket_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def test_running_incompatible_verbatim_circuit_on_aspen_raises_error(self):
"""
device = AWSBraketProvider().get_backend("Aspen-M-2")
circuit = QuantumCircuit(2)
circuit.cnot(0, 1)
circuit.cx(0, 1)

with self.assertRaises(errorfactory.ClientError):
device.run(circuit, verbatim=True, disable_qubit_rewiring=True)
Expand Down

0 comments on commit c6938fe

Please sign in to comment.