commit e9e50ff8ea99a8e525a768a49590c6a332314f68
parent 95d93aec55bfd8e1a9f340ebb22803bfe0fa2f54
Author: Cody Lewis <cody@codymlewis.com>
Date: Fri, 29 May 2020 19:50:02 +1000
Added licence
Diffstat:
M | fanout | | | 20 | ++++++++++++++++++++ |
M | swap | | | 20 | ++++++++++++++++++++ |
2 files changed, 40 insertions(+), 0 deletions(-)
diff --git a/fanout b/fanout
@@ -2,6 +2,21 @@
'''
A simple quantum circuit that replicates the state of a qubit to N others
+
+Copyright (C) 2020 Cody Lewis
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <https://www.gnu.org/licenses/>.
'''
import argparse
@@ -27,6 +42,11 @@ def create_circuit(in_state, n):
if __name__ == '__main__':
+ print(
+ "swap Copyright (C) 2020 Cody Lewis\n" +
+ "This program comes with ABSOLUTELY NO WARRANTY.\n" +
+ "This is free software, and you are welcome to redistribute it under certain conditions.\n"
+ )
PARSER = argparse.ArgumentParser(
description="A simple quantum circuit that replicates the state of a qubit to N others"
)
diff --git a/swap b/swap
@@ -2,6 +2,21 @@
'''
A simple quantum circuit that swaps qubits sequentially
+
+Copyright (C) 2020 Cody Lewis
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <https://www.gnu.org/licenses/>.
'''
import argparse
@@ -35,6 +50,11 @@ def create_circuit(in_states):
if __name__ == '__main__':
+ print(
+ "swap Copyright (C) 2020 Cody Lewis\n" +
+ "This program comes with ABSOLUTELY NO WARRANTY.\n" +
+ "This is free software, and you are welcome to redistribute it under certain conditions.\n"
+ )
PARSER = argparse.ArgumentParser(
description="A simple quantum circuit that swaps qubits sequentially"
)