-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Milestone
Description
Add a minimal test that check that the compiled register is the one we expect after
- embedding with blade with device info
- compilation of QuantumProgram to same device
Description
The test should look like
import numpy as np
from qoolqit import BladeEmbedder, BladeEmbeddingConfig, AnalogDevice, Constant, Drive, QuantumProgram, Register
qubo = np.array([[0,1],[1,0]])
config = BladeEmbeddingConfig(device=AnalogDevice())
embedder = BladeEmbedder()
graph = embedder.embed(qubo)
register = Register.from_graph(graph)
drive = Drive(amplitude=Constant(10.0, value=0.8))
program = QuantumProgram(register, drive)
program.compile_to(device=AnalogDevice())
# check register in program.compiled sequence
compiled_register = program.compiled_sequence.register
assert ...Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels