We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2da469 commit 1d39815Copy full SHA for 1d39815
doc/Programs/Sensing/twoq.py
@@ -29,7 +29,7 @@
29
30
def evolve(state):
31
"""Evolve quantum state under Hamiltonian."""
32
- return np.dot(expm(-1j * H * dt), state)
+ return np.dot(np.linalg.expm(-1j * H * dt), state)
33
34
# Evolve the initial state over time
35
result_states = []
doc/Programs/Sensing/twoqubitsqiskit.py
@@ -1,5 +1,5 @@
1
import numpy as np
2
-from qiskit import QuantumCircuit, execute, Aer
+from qiskit import QuantumCircuit#, execute, Aer
3
4
# Define the number of qubits
5
num_qubits = 2
0 commit comments