Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: More gates, layout tweaks #7

Closed
wants to merge 13 commits into from

Conversation

hornc
Copy link
Contributor

@hornc hornc commented Mar 13, 2021

I'm getting a feel now for how the layouts are constructed.

These build on #6, and this is me experimenting with how the layouts work.

  • This adds some more controlled gate footprints
  • sets the default page size to A4 to fix the squashed frame, and confirmed it works sensibly with other page sizes (A3, and custom x, y sizes)

I've been testing with this circuit:

OPENQASM 2.0;
include "qelib1.inc";
h(1);
i(2);
i(3);
cx 1,2;
cy 1,3;
ch 2,3;
measure 1 -> 1;
measure 2 -> 2;
measure 3 -> 3;

Which produces this:

image
CY and CH are not built in OPENQASM 2.0 statements (but are provided by qelib1.inc ), so this is possibly a misstep on my part, but might be practical.

I don't think this layout has space to possibly work, and I'm not quite sure of the physical constraints of these optical components, or how best to represent and align the optical paths. I changed the layout to simply pack the components neatly, keeping qubits in rows. It should be simple enough to pad the spacing to allow fibre routing, or whatever. The X spacing should probably be expanded out, so all the measures are at the same level.

This is the circuit I was trying for drawn using an online tool
image

I'd need some more guidance on the ideal placement criteria to do much more useful here, or on what is required for schematic generation.

@hornc hornc marked this pull request as draft March 14, 2021 02:32
@hornc
Copy link
Contributor Author

hornc commented Sep 2, 2021

repo has moved / project re-started, this is probably no longer relevant.

@hornc hornc closed this Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant