Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I've been testing with this circuit:
Which produces this:
CY
andCH
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
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.