Skip to content

Commit

Permalink
Merge pull request #593 from SRI-International/compiler-opt-changes-h…
Browse files Browse the repository at this point in the history
…amsim

Compiler opt changes hamsim
  • Loading branch information
rtvuser1 authored Aug 1, 2024
2 parents 8b09664 + 4753aae commit 26c4103
Show file tree
Hide file tree
Showing 2 changed files with 264 additions and 67 deletions.
329 changes: 263 additions & 66 deletions hamlib/qiskit/benchmarks-qiskit.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion hamlib/qiskit/hamlib_simulation_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def analyze_and_print_result(
qc_initial = initial_state(n_spins=num_qubits, init_state=init_state)

# get Hamiltonian operator by creating entire circuit (DEVNOTE: need to not require whole circuit)
_, ham_op, _ = create_circuit(n_spins=num_qubits, init_state=init_state)
_, _, ham_op, _ = create_circuit(n_spins=num_qubits, init_state=init_state)

# compute the expected distribution after exact evolution
correct_dist = HamiltonianSimulationExact(qc_initial, n_spins=num_qubits,
Expand Down

0 comments on commit 26c4103

Please sign in to comment.