Skip to content

Commit

Permalink
Merge pull request #36 from qiboteam/fixqiskitgpu
Browse files Browse the repository at this point in the history
Fix qiskit-gpu when precision is set
  • Loading branch information
scarrazza authored Feb 24, 2022
2 parents ace6522 + 99cdcb3 commit 6cdc7fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/libraries/qiskit.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ def __init__(self, max_qubits="0", fusion_threshold="1"):
from qiskit.providers.aer import StatevectorSimulator
super().__init__(max_qubits)
self.name = "qiskit-gpu"
self.options = dict(
self.sim_options = dict(
device="GPU",
fusion_enable=self.max_qubits > 0,
fusion_max_qubit=self.max_qubits,
fusion_threshold=int(fusion_threshold),
precision="double"
)
self.simulator = StatevectorSimulator(**self.options)
self.simulator = StatevectorSimulator(**self.sim_options)

0 comments on commit 6cdc7fb

Please sign in to comment.