Skip to content

Commit 1d39815

Browse files
committed
added files
1 parent c2da469 commit 1d39815

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/Programs/Sensing/twoq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
def evolve(state):
3131
"""Evolve quantum state under Hamiltonian."""
32-
return np.dot(expm(-1j * H * dt), state)
32+
return np.dot(np.linalg.expm(-1j * H * dt), state)
3333

3434
# Evolve the initial state over time
3535
result_states = []

doc/Programs/Sensing/twoqubitsqiskit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import numpy as np
2-
from qiskit import QuantumCircuit, execute, Aer
2+
from qiskit import QuantumCircuit#, execute, Aer
33

44
# Define the number of qubits
55
num_qubits = 2

0 commit comments

Comments
 (0)