Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pennylane_ionq/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def reset(self, circuits_array_length=1):
self._samples = None
self.histograms = []
self.input = {
"format": "ionq.circuit.v0",
"type": "ionq.circuit.v1",
"qubits": self.num_wires,
"circuits": [{"circuit": []} for _ in range(circuits_array_length)],
"gateset": self.gateset,
Expand Down
12 changes: 6 additions & 6 deletions tests/test_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def mock_submit_job(*args):

dev.apply(tape.operations)

assert dev.job["input"]["format"] == "ionq.circuit.v0"
assert dev.job["input"]["type"] == "ionq.circuit.v1"
assert dev.job["input"]["gateset"] == "qis"
assert dev.job["target"] == "foo"
assert dev.job["input"]["qubits"] == 1
Expand All @@ -533,7 +533,7 @@ def mock_submit_job(*args):
dev.reset(circuits_array_length=1)
dev.batch_apply(tape.operations, circuit_index=0)

assert dev.job["input"]["format"] == "ionq.circuit.v0"
assert dev.job["input"]["type"] == "ionq.circuit.v1"
assert dev.job["input"]["gateset"] == "qis"
assert dev.job["target"] == "foo"
assert dev.job["input"]["qubits"] == 1
Expand All @@ -559,7 +559,7 @@ def mock_submit_job(*args):

dev.apply(tape.operations)

assert dev.job["input"]["format"] == "ionq.circuit.v0"
assert dev.job["input"]["type"] == "ionq.circuit.v1"
assert dev.job["input"]["gateset"] == "qis"
assert dev.job["input"]["qubits"] == 1

Expand Down Expand Up @@ -591,7 +591,7 @@ def mock_submit_job(*args):
dev.reset(circuits_array_length=1)
dev.batch_apply(tape.operations, circuit_index=0)

assert dev.job["input"]["format"] == "ionq.circuit.v0"
assert dev.job["input"]["type"] == "ionq.circuit.v1"
assert dev.job["input"]["gateset"] == "qis"
assert dev.job["input"]["qubits"] == 1

Expand Down Expand Up @@ -624,7 +624,7 @@ def mock_submit_job(*args):

dev.apply(tape.operations)

assert dev.job["input"]["format"] == "ionq.circuit.v0"
assert dev.job["input"]["type"] == "ionq.circuit.v1"
assert dev.job["input"]["gateset"] == "native"
assert dev.job["input"]["qubits"] == 3

Expand Down Expand Up @@ -677,7 +677,7 @@ def mock_submit_job(*args):
except StopExecute:
pass

assert dev.job["input"]["format"] == "ionq.circuit.v0"
assert dev.job["input"]["type"] == "ionq.circuit.v1"
assert dev.job["input"]["gateset"] == "native"
assert dev.job["target"] == "simulator"
assert dev.job["input"]["qubits"] == 1
Expand Down
Loading