Skip to content

Commit

Permalink
fix test gpsr
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmoutinho committed Dec 14, 2023
1 parent e093682 commit 278270b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tests/backends/test_gpsr.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
from qadence.blocks import add, chain
from qadence.constructors import total_magnetization
from qadence.engines.torch.differentiable_backend import DifferentiableBackend
from qadence.operations import CNOT, CRX, CRY, RX, RY, ConstantAnalogRotation, HamEvo, X, Y, Z
from qadence.parameters import ParamMap
from qadence.operations import CNOT, CRX, CRY, RX, RY, AnalogRot, HamEvo, X, Y, Z
from qadence.register import Register


Expand Down Expand Up @@ -126,12 +125,8 @@ def circuit_analog_rotation_gpsr(n_qubits: int) -> QuantumCircuit:
x = Parameter("x", trainable=False)
theta = Parameter("theta")
analog_block = chain(
ConstantAnalogRotation(
parameters=ParamMap(duration=1000 * x / omega1, omega=omega1, delta=0, phase=0)
),
ConstantAnalogRotation(
parameters=ParamMap(duration=1000 * theta / omega2, omega=omega2, delta=0, phase=0)
),
AnalogRot(duration=1000 * x / omega1, omega=omega1, delta=0, phase=0),
AnalogRot(duration=1000 * theta / omega2, omega=omega2, delta=0, phase=0),
)

circ = QuantumCircuit(register, analog_block)
Expand Down

0 comments on commit 278270b

Please sign in to comment.