Photonic circuit generation

Axiomatic AI’s photonic circuit synthesizer feature helps in creating photonic circuits based on the query in text as well as PDF files. This feature is useful for designing photonic circuits for various applications such as optical communication, sensing, and computing. It can be accessed via an API within your working environment.

From a simple query

1

Install our client

$pip install axiomatic
2

Get an API Key

Get an API key following the steps here.

1API_KEY = "YOUR_API_KEY"
3

Initialize the client

1from axiomatic import Axiomatic
2
3# Set large timeout as circuit synthesis is time consuming
4client = Axiomatic(api_key=API_KEY, timeout=5000)
4

Set up your query

1query = """Design a dual ring resonator loopback circuit that achieves the following transmission characteristics:
2Minimize transmission from input port (in) to the output ports (out1 and out2),
3targeting transmission levels below 5% at a wavelength of 1550 nm.
4Ensure the resonance of the double ring resonators is properly tuned to maintain low transmission
5over a broad wavelength range (1530 nm to 1565 nm). The design should optimize the coupling between the
6rings and the couplers to ensure stable performance, while maintaining low loss and effective filtering across
7the specified wavelength range.
8Special attention should be given to phase matching and
9resonance alignment between the cascaded rings.
10"""

To get the best results, try to be as specific as possible, ensuring to express constraints clearly.

5

Use our API

1circuit = client.pic.synthesize_circuit_from_text(query=query)
6

Display the image

1from PIL import Image
2import base64
3import io
4
5image_data = circuit.circuit_image.data
6image_bytes = base64.b64decode(image_data)
7image = Image.open(io.BytesIO(image_bytes))
8image.show()
PIC circuit
Generated PIC circuit

From a paper

1

Install our client

$pip install axiomatic
2

Get an API Key

Get an API key following the steps here.

1API_KEY = "YOUR_API_KEY"
3

Initialize the client

1from axiomatic import Axiomatic
2
3# Set large timeout as circuit synthesis is time consuming
4client = Axiomatic(api_key=API_KEY, timeout=500)
4

Import the PDF and call our API

1import io
2
3with open(PDF_PATH, 'rb') as pdf_file:
4 circuit = client.pic.synthesize_circuit_from_paper(file=pdf_file)
5

Display the image

1from PIL import Image
2import base64
3
4image_data = circuit.circuit_image.data
5image_bytes = base64.b64decode(image_data)
6image = Image.open(io.BytesIO(image_bytes))
7image.show()
PIC circuit
Generated PIC circuit