This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
db: | |
image: mysql | |
container_name: mysql_db | |
restart: always | |
environment: | |
- MYSQL_ROOT_PASSWORD="secret" | |
web: | |
image: apache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace testing123 { | |
open Microsoft.Quantum.Canon; | |
open Microsoft.Quantum.Intrinsic; | |
@EntryPoint() | |
operation HelloQ() : Unit { | |
Message("Hello quantum world!"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Q_superposition { | |
open Microsoft.Quantum.Canon; | |
open Microsoft.Quantum.Intrinsic; | |
operation Superposition() : Result { | |
mutable state = Zero; | |
using (qubit = Qubit()) { | |
H(qubit); | |
set state = M(qubit); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Q_superposition { | |
open Microsoft.Quantum.Canon; | |
open Microsoft.Quantum.Intrinsic; | |
operation Superposition() : Result { | |
mutable state = Zero; | |
using (qubit = Qubit()) { | |
H(qubit); | |
set state = M(qubit); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Q_Entanglement { | |
open Microsoft.Quantum.Canon; | |
open Microsoft.Quantum.Intrinsic; | |
operation Entanglement() : (Result, Result) { | |
mutable Q1_state = Zero; | |
mutable Q2_state = Zero; | |
using ((Q1, Q2) = (Qubit(), Qubit())) { | |
H(Q1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Q_Teleportation { | |
open Microsoft.Quantum.Canon; | |
open Microsoft.Quantum.Intrinsic; | |
operation Teleportation(sentMessage : Bool) : Bool { | |
mutable receivedMessage = false; | |
using (register = Qubit[3]) { | |
let message = register[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Q_Teleportation { | |
open Microsoft.Quantum.Canon; | |
open Microsoft.Quantum.Intrinsic; | |
operation Teleportation(sentMessage : Bool) : Bool { | |
mutable receivedMessage = false; | |
using (register = Qubit[3]) { | |
let message = register[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
operation Teleportation(sentMessage : Bool) : Bool { | |
mutable receivedMessage = false; | |
using (register = Qubit[3]) { | |
let message = register[0]; | |
if (sentMessage) { | |
X(message); // flip the message to "true" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: test | |
labels: | |
app: nginx | |
rel: stable | |
spec: | |
containers: | |
- name: test |