Skip to content

Commit

Permalink
missing job_monitor. linting pending, if required.
Browse files Browse the repository at this point in the history
  • Loading branch information
SaashaJoshi committed May 30, 2024
1 parent 1924df1 commit c483dc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion torchquantum/plugin/qiskit/qiskit_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

from qiskit import Aer, execute, transpile, QuantumCircuit
from qiskit.providers.aer.noise import NoiseModel
from qiskit.tools.monitor import job_monitor
from qiskit.exceptions import QiskitError
from .qiskit_plugin import (
tq2qiskit,
Expand Down Expand Up @@ -192,7 +193,6 @@ def qiskit_init(self):
# initialize now
# Retrieve token from environment.
token = os.getenv("IBM_API_TOKEN")
# IBMQ.load_account()
self.provider = get_provider_hub_group_project(
token=token,
hub=self.hub,
Expand Down
2 changes: 1 addition & 1 deletion torchquantum/util/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ def clone_model(model_to_clone):#i have to note:this clone_model function was ma
#####################

for idx, key in enumerate(state_dict_plus_shift):
if idx < 2: # Skip the first two keys because they are not paramters
if idx < 2: # Skip the first two keys because they are not parameters
continue
state_dict_plus_shift[key] += shift_rate
state_dict_minus_shift[key] -= shift_rate
Expand Down

0 comments on commit c483dc3

Please sign in to comment.