Travis-S-IBM / q-kernel-ops

A repository for the QAMP Spring 2022 project
Apache License 2.0
3 stars 2 forks source link

Qkernel - Only run uniq pair of [x,y] #18

Closed mickahell closed 2 years ago

mickahell commented 2 years ago

Resume

We want to only generate circuit for uniq [x,y] pair.

As our matrix is symmetrical, we don't need to simulate every possible pair but only uniq pair.

Goal

Adding a check on the kernel_endpoint function to have only uniq pair Code of the seed_x & seed_y generation :

https://github.com/Travis-S-IBM/q-kernel-ops/blob/b5d53123a834f996cc1303a70801911ab3a72b84/src/workflow.py#L73-L92

Example

[2, 2]

means :

circuit only run 6 circuits :

[ 0, 1, 2
0,
1, 

2,            ]

Getting only lower bound

EPIC #5