Monday, December 16, 2024

The Top

 STEP 1                                                                            


 


From the top, looking at my imports. I don't need to import cirq because I am working 

on Jupyter Notebook from my cirq environment. I did need to import simpy to it.




Tell me about python simpy

SimPy is a process-based dbout python simpyiscrete-event simulation framework for Python. It allows you to model real-world processes and systems, such as queues, resource allocation, and more, using Python generator functions. SimPy is particularly useful for simulating systems where events occur at discrete points in time.

Key Features of SimPy

  1. Process-Based Modeling: SimPy uses Python generator functions to define processes. These processes can represent entities like customers, vehicles, or agents that interact with each other and with shared resources.

  2. Shared Resources: SimPy provides various types of shared resources, such as servers, checkout counters, and tunnels, to model limited capacity congestion points.

  3. Flexible Time Management: Simulations can be run "as fast as possible," in real time (wall clock time), or by manually stepping through events.

  4. Extensive Documentation: SimPy has comprehensive documentation, including tutorials, guides, examples, and an API reference.

                                                                           


I counted them: there are 54 qubits in the Sycamore processor.


I then asked why I needed a seed for my problem instance. From COPILOT:

                                                 

Was wondering what the call to sympy symbol did:
                          
                                                 

                                                                      






STEP 2
                                                 
The circuit using the Greek letter:

                                                                  


Asked COPILOT where the weight numbers were coming from:

                                                                       

As explained in the code, we are running ZZ between adjacent qubits, which confers

entanglement.


                                           
                                                                                  

A 'moment' in cirq (from Cirq basics):

                                                                 
                                                                          

No comments: