Skip to content
Discussion options

You must be logged in to vote

Hello again everyone,

Somehow I managed to fix the code shown above (I'm impressed by myself), if anyone wants to see it, here it is:

import torch
from torch import tensor
from qadence import sample, product_state, TimeParameter, FeatureParameter, X, Y, Z, N, add, kron, Register, HamEvo, run, BackendName, PI, expectation
from qadence.analog.constants import C6_DICT
from pyqtorch.utils import SolverType
import numpy as np
from sympy import cos, sin, exp, tanh

ode_solver = SolverType.KRYLOV_SE  # time-dependent Schrodinger equation solver method
n_steps_hevo = 10000  # integration time steps used by solver

# Parameters
c_6 = C6_DICT[60] # [rad*μm^6/μs]
U = 2*PI # [rad/μs]

# Time paramete…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ComputationalBasis
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant