Skip to content

Commit

Permalink
please black
Browse files Browse the repository at this point in the history
  • Loading branch information
cosenal committed Oct 21, 2024
1 parent 034ec88 commit 6a49e7d
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions pennylane_qrack/qrack_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,30 +175,30 @@ def get_c_interface():

def __init__(self, wires=0, shots=None, **kwargs):
options = dict(kwargs)
if 'isStabilizerHybrid' in options:
self.isStabilizerHybrid = options['isStabilizerHybrid']
if 'isTensorNetwork' in options:
self.isTensorNetwork = options['isTensorNetwork']
if 'isSchmidtDecompose' in options:
self.isSchmidtDecompose = options['isSchmidtDecompose']
if 'isBinaryDecisionTree' in options:
self.isBinaryDecisionTree = options['isBinaryDecisionTree']
if 'isOpenCL' in options:
self.isOpenCL = options['isOpenCL']
if 'isHostPointer' in options:
self.isHostPointer = options['isHostPointer']
if 'noise' in options:
self.noise = options['noise']
if "isStabilizerHybrid" in options:
self.isStabilizerHybrid = options["isStabilizerHybrid"]
if "isTensorNetwork" in options:
self.isTensorNetwork = options["isTensorNetwork"]
if "isSchmidtDecompose" in options:
self.isSchmidtDecompose = options["isSchmidtDecompose"]
if "isBinaryDecisionTree" in options:
self.isBinaryDecisionTree = options["isBinaryDecisionTree"]
if "isOpenCL" in options:
self.isOpenCL = options["isOpenCL"]
if "isHostPointer" in options:
self.isHostPointer = options["isHostPointer"]
if "noise" in options:
self.noise = options["noise"]
super().__init__(wires=wires, shots=shots)
self._state = QrackSimulator(
self.num_wires,
isStabilizerHybrid = self.isStabilizerHybrid,
isStabilizerHybrid=self.isStabilizerHybrid,
isTensorNetwork=self.isTensorNetwork,
isSchmidtDecompose=self.isSchmidtDecompose,
isBinaryDecisionTree=self.isBinaryDecisionTree,
isOpenCL=self.isOpenCL,
isHostPointer=self.isHostPointer,
noise = self.noise
noise=self.noise,
)

def _reverse_state(self):
Expand Down

0 comments on commit 6a49e7d

Please sign in to comment.