Question about sampling clamped model in restricted Boltzmann machine example

Hi,

I am trying to sample a clamped model in a restricted Boltzmann machine. Since I could not find the perfect sampler used in the "Training a Restricted Boltzmann Machine to Add " example, I decide to use the hardware to sample a clamped model. In the example, the perfect sampler takes a sub-set qubo problem where the number of visible nodes is reduced from 10 to 4. When I tried to use the original bipartite graph with num_visible = 10 and num_hidden=14, I got an error of "invalid coupler".

What I have done is:

qubo_jobs = compile_jobs([[qubo_dict]], hw_map=r.hw['map'], num_v=4, num_h=10, mode=1)

submitted_problems, gauges = r.send_jobs(qubo_jobs, 1.0)

Error message:  "Encoding error: invalid coupler (0,11)"

I think I have to define a new graph and find embeddings.

My question is:

Is there a simple way to use the original graph for sampling the clamped model on hardware?

0

Comments

1 comment

Please sign in to leave a comment.

Didn't find what you were looking for?

New post