Posts

Showing posts from January 7, 2019

Tunneling protocol

Image
Internet protocol suite Application layer BGP DHCP DNS FTP HTTP HTTPS IMAP LDAP MGCP MQTT NNTP NTP POP ONC/RPC RTP RTSP RIP SIP SMTP SNMP SSH Telnet TLS/SSL XMPP more... Transport layer TCP QUIC UDP DCCP SCTP RSVP more... Internet layer IP IPv4 IPv6 ICMP ICMPv6 ECN IGMP IPsec more... Link layer ARP NDP OSPF Tunnels L2TP PPP MAC Ethernet DSL ISDN FDDI more... v t e In computer networks, a tunneling protocol is a communications protocol that allows for the movement of data from one network to another. It involves allowing private network communications to be sent across a public network, such as the Internet, through a process called encapsulation. A tunneling protocol may, for example, allow a foreign protocol to run over a network that does not support that particular protocol, such as running IPv6 over IPv4. Another important use is to provide services that are impractical or

QuTiP: Resolving inconsistent Qobj shapes

Image
0 This was previously explored in QuTiP TypeError: Incompatible Qobj shapes with tensor product but I'm not sure about the answer there. Suppose I define A = tensor(qeye(2), qeye(2)) and B = qeye(4) , I cannot multiply them because the object shapes are inconsistent. However, the matrices are of the same dimension and I would like to "flatten" A to allow it to be multiplied by B . If I have a combination of seperable operators and non-seperable ones, how do I use them together? In other words, B cannot be simplified further so what should I do to A to allow them to be multiplied? EDIT: The clunky looking Qobj(A.data.toarray()) works but I'll leave this open in case someone has a better idea or understands why QuTiP does this. python qutip