Step 1: Select a Gate
- Identify the quantum gate you want to use from the “Gates Palette” on the top side of the interface.
- Click and hold the desired gate.
Step 2: Place the Gate on the Circuit
- Drag the selected gate to the desired position on the circuit diagram.
- Release the mouse button to drop the gate on the qubit line(s) where you want it to act.
Step 3: Connect Gates (if needed)
- Some gates require connections between qubits, mainly multi qubits, for adding a control and target, which a user can do by clicking a gate and choosing the option of Edit.
Step 4: Add Measurement
- Locate the “Measurement” gate in the gate pallet.
- Drag and drop the measurement gate onto the qubit line(s) you want to measure.
Step 5: Arrange and Adjust
- If necessary, adjust the positions of the gates on the circuit diagram to improve readability and organization
- You can drag and drop gates to different positions on the qubit lines.
Step 6: Run the Circuit
- Once you have designed your circuit, you can run it on a simulator from the many provided(CPU), GPU, or on a real quantum device(QPU)
- The interface will provide options for selecting the backend (simulator or device) running the simulation and obtaining the visualization or simulation output results.
Additional Tips
- Undo/Redo: Use the “Undo” and “Redo” buttons to revert or reapply changes to your circuit.
- Manage: To manage Quantum registers[(q)ubits] and Quantum registers(c) number as per user’s preference.
- Clear: The “Clear” button allows you to start with a fresh circuit diagram.
- OpenQASM 2.0: The code editor displays the OpenQASM 2.0 code representation of your circuit. You can modify the code directly if you are familiar with the language; is also available in Qiskit, Cirq, and CudaQ.
Creating Custom Gates #
Here is a short video demonstrating how users can create a custom gate and perform related operations.
- Design a Custom Gate: Combine a sequence of existing gates to create a new, more complex gate. This can help modularize your circuit design or represent frequently used subroutines.
- Name and Describe the Gate: Give the custom gate a descriptive name(only 3 letters) and an optional description to help you and others understand its purpose, which a user can see by clicking the (i) option
- Save the Custom Gate: The interface provides a mechanism to save your custom gate for future use by clicking the save option.
Using Custom Gates
- Once you have created a custom gate, it will appear in the gate palette along with the pre-defined gates.
- You can then drag and drop your custom gate onto the circuit diagram like any other gate.
- The interface will automatically break down the custom gate into its basic gates when you run the circuit or view the detailed circuit representation when clicking gate expand.[G].
Additional Features:
- Gate Expansion: Clicking on a custom gate in the circuit diagram should expand it to show the underlying sequence of gates.
- Gate Information: Clicking on a gate (custom or pre-defined) should display information about the gate, such as its representation and its effect on the qubit state.
- Gate Editing: The ability to edit or modify existing custom gates.
- Gate Deletion: The option to delete custom gates if they are no longer needed.