Skip to content

Commit

Permalink
Add missing verbose flag in kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
rtvuser1 committed Jul 6, 2024
1 parent 8cb47a6 commit 79316b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hamlib/qiskit/hamlib_simulation_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
from hamlib_simulation_kernel import HamiltonianSimulation, kernel_draw, get_valid_qubits
from hamlib_utils import create_full_filenames, construct_dataset_name
from hamiltonian_simulation_exact import HamiltonianSimulationExact, HamiltonianSimulationExact_Noiseless
from qiskit_algorithms import TimeEvolutionProblem, SciPyRealEvolver

min_qubits = 0

Expand Down Expand Up @@ -374,6 +373,7 @@ def get_args():
# special argument handling
ex.verbose = args.verbose
verbose = args.verbose
hamlib_simulation_kernel.verbose = args.verbose

if args.num_qubits > 0: args.min_qubits = args.max_qubits = args.num_qubits

Expand Down
1 change: 1 addition & 0 deletions hamlib/qiskit/hamlib_simulation_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from qiskit.circuit import QuantumCircuit
from qiskit.circuit.library import PauliEvolutionGate

verbose = False

# Saved circuits and subcircuits for display
QC_ = None
Expand Down

0 comments on commit 79316b7

Please sign in to comment.